Model()
The model for the row UI element, this is what model:ko/ui/checkbox.create returns
Properties:
| Name | Type | Description |
|---|---|---|
name |
string | The node name of the element |
element |
Element | A XUL checkbox |
Extends
Methods
-
<static> checked( [value])
-
return or set the selected state
Parameters:
Name Type Argument Description valueString <optional>
"true" or "false" to be selected or not
Returns:
true is selected
- Type
- boolean
-
<static> onChange(callback)
-
Add onChange even handler
Parameters:
Name Type Description callbackfunction eventhandler callback
- Deprecated:
-
- use `.on("command", callback)` instead
-
<static> value( [value])
-
Return or set selected state
Parameters:
Name Type Argument Description valueString <optional>
value to be set
Returns:
true is selected
- Type
- boolean