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 value
String <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 callback
function eventhandler callback
- Deprecated:
-
- use `.on("command", callback)` instead
-
<static> value( [value])
-
Return or set selected state
Parameters:
Name Type Argument Description value
String <optional>
value to be set
Returns:
true is selected
- Type
- boolean