프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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. |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$pluginOptions | the switch plugin options. |
메소드 | 설명 | |
---|---|---|
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 $offColor |
public $onColor |