Property | Type | Description | |
---|---|---|---|
$animated | whether the slide is animated or not. | ||
$debugMode | whether to display minified versions of the files or not | ||
$events | the JavaScript event handlers. | ||
$inputType | input type. It can be 'radio' or 'checkbox' | ||
$offColor | color when is off. It can be any of bootstrap button states. Defaults to 'warning'. | ||
$offLabel | the label when is off. Defaults to 'Off'. | ||
$onColor | color when is on. It can be any of bootstrap button states. Defaults to 'primary'. | ||
$onLabel | the label when is on. Defaults to 'On'. | ||
$size | size of switch button. Supports 'large', 'small' or 'mini' | ||
$textLabel | the text label. Defaults to null. |
Property | Type | Description | |
---|---|---|---|
$pluginOptions | the switch plugin options. |
Method | Description | |
---|---|---|
init ( ) | Initializes the widget. | |
registerClientScript ( ) | Registers required client script for bootstrap typeahead. It is not used through bootstrap->registerPlugin in order to attach events if any | |
renderField ( ) | Renders the typeahead field | |
run ( ) | Runs the widget. |
public registerClientScript ( ) |
public $debugMode |
public $offColor |
public $onColor |