A <button class="formwidget" returns data when it's checked.
Only <button type="radio" and <button type="checkbox" can be
checked interactively, but a plain button can be checked with
an attribute. Firefox/Mac doesn't show the difference :-|
When harvesting, if a button has
no value, it's label is used as value.
When seeding, the button is checked if the name/value matches. If
the button previously had no label, it is set to the given label,
otherwise it is ignored.
see menuitems for
<button type="menu" and
<button type="menu-button".
toolbarbuttons are not implemented yet.
Note: when seeding, checkbox buttons are never unchecked.
Such is the nature of a checkbox: if it is not checked,
it doesn't mean it should be unchecked; it means nothing.
If you need a switch, use radiobutton buttons.
Example:
result: mybut=1
Additional Attributes:
name
The name of the widget. Used as the name of the variable in CGI
value
The value of the widget. Used as the value of the variable in CGI
onvalidate
pseudo event handler. should point to a method to execute
for validation. when validating, the method will receive a bucket
with a single seed in it, reflecting the name, value and label of this
element.