This example demonstrates reactive properties in hyTags. Type in the textarea and watch the character count update in real-time.
The example shows how to use
property,
map-value, and
map-property to create reactive data bindings.
<property name="text" type="string"></property> <textarea></textarea> <map-value> <property-set name="text"> </map-value> <div></div> <map-property name="text"> <string-get-length> <number-to-string suffix=" character(s)"> <selection-set-text> </map-property>
string on the stack and pushes the result as a
number.number on the stack to a
string.string on the stack.