Basic settings
monkey
@{}
, e.g. @{my_favourite_animal}
.My favourite animal is @{my_favourite_animal}
..
(dot), e.g. @{building.height}
.[]
, e.g. @{building[dynamic_prop]}
will be equivalent to @{building.height}
when dynamic_prop
equals height
.Binding
my_var
. If the value of the slider changes, so does the value of my_var
. Similarly, if the value of my_var
changes, the slider is moved automatically to reflect the change.To bind an input component, specify the state element. For example, my_var
or building.height
. Note that this field should not contain the template syntax, e.g. my_var
and not @{my_var}
.Events
wf-change
event, which occurs whenever the user changes the contents of the component.For more about event handlers, consult the Event handlers section of the Writer Framework documentation.Visibility
my_var
, visibility will depend on the value of the my_var
state element. Note that this field, similarly to Binding, should only contain the state element, e.g. my_var
and not @{my_var}
.main.py
file, which defines the behavior of the app. You can toggle the Code panel by clicking the Code control near the lower left corner of the page:
print()
function, as well as any error messages. You can toggle the Log panel by clicking the Log control near the lower right corner of the page: