textarea/input based on role in example components modal thing
This commit is contained in:
parent
4e744db68f
commit
efdbd88434
|
@ -66,7 +66,11 @@ def edit_example(example, sense):
|
||||||
color_class = ".example-component-" + role_txt
|
color_class = ".example-component-" + role_txt
|
||||||
|
|
||||||
left = [h("span" + color_class, {}, role_txt)]
|
left = [h("span" + color_class, {}, role_txt)]
|
||||||
middle = [h("input.example-component-text", {"props": {"type": "text", "value": component.text}}, "")]
|
|
||||||
|
if component.role is None:
|
||||||
|
middle = [h("textarea.example-component-text", {"props": {"value": component.text}}, "")]
|
||||||
|
else:
|
||||||
|
middle = [h("input.example-component-text", {"props": {"type": "text", "value": component.text}}, "")]
|
||||||
|
|
||||||
divs.append(h("div.flex.five.example-component", {}, [
|
divs.append(h("div.flex.five.example-component", {}, [
|
||||||
h("div.one-fifth", {}, left),
|
h("div.one-fifth", {}, left),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user