Class: Model

ko/ui/radio~ Model


Model()

The model for the row UI element, this is what model:ko/ui/radio.create returns

Properties:
Name Type Description
name string

The node name of the element

element Element

A XUL radio

Extends

Methods


<static> onChange(callback)

Add onChange even handler

Parameters:
Name Type Description
callback function

eventhandler callback

Deprecated:
  • use `.on("command", callback)` instead

<static> selected( [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> 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