Skip to end of metadata
Go to start of metadata

Checkbox bound to boolean

Checkboxes can be associated to boolean attributes:

Browsers do not send values for unchecked checkboxes, which would make it impossible to set a boolean value to false. To circumvent this, the generated HTML for the above code will look like this:

If the checkbox is not checked the underlying hidden value of "false" will be submitted anyway. This should be taken into consideration if you plan to do funny things with checkboxes and javascript.

Checkbox bound to Set

A checkbox can also be bound to Set properties:


‹ Cache
up
Decorators ›

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.