ButtonInfotron
History Key
- New content
Removed content
Recent Versions
Choose two versions to compare, or click the link to view it.
Simple configurable Button Blueprint.
Sample Declaration
<div id="button"
properties="click_value: 'Thank you for clicking!'"
script="http://localhost/Button.js">
<button>Click me now!</button>
</div>
Input Terminals
-
enabled_state_in
- accepts the following message types
- boolean (Or the strings 'true' or 'false')
- accepts the following message types
Output Terminals
- click_value_out
- enabled_state_out
Properties
- click_value ; The message to send when clicked on the output terminal "click_value_out"
Demos that use it
- button.html
- dynamic_construction.html
- lazy_and_upfront_loading.html
- sticky_note.html
How does it work?
The Button can be configured to send a specific message when pressed, by using the "click_value" property. Alos, it can be enabled and disabled by sending true or false messages to the input terminal "enabled_state_in". The state is then echoed to the output terminal "enabled_state_out".