Version 19, last updated by peter svensson at May 25, 2007 09:11 UTC

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
      1. boolean (Or the strings 'true' or 'false')

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".