RadioButton

Override defaults with $.fn.radiobutton.defaults.

Dependencies

  • none

Usage

Create radiobutton from markup.

Create radiobutton using javascript.

Properties

Name Type Description Default
width number The width of radiobutton component. 20
height number The height of radiobutton component. 20
value string The default value bound to the radiobutton. null
checked boolean Defines if the radiobutton is checked. false
disabled boolean Defines if to disable the radiobutton. false
label string The label bound to the radiobutton. null
labelWidth number The label width. auto
labelPosition string The label position. Possible values are:'before','after','top'. before
labelAlign string The label alignment. Possible values are:'left','right'. left

Events

Name Parameters Description
onChange checked Fires when the checked value is changed.

Methods

Name Parameter Description
options none Return the options object.
setValue value Set the value for the radiobutton.
disable none Disable the component.
enable none Enable the component.
check none Check the component.
uncheck none Uncheck the component.
clear none Clear the 'checked' value.
reset none Reset the 'checked' value.