PHP Класс WhSwitch

См. также: https://github.com/nostalgiaz/bootstrap-switch
Автор: Antonio Ramirez ([email protected])
Наследование: extends CInputWidget
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$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.

Защищенные свойства (Protected)

Свойство Тип Описание
$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.

Описание методов

init() публичный Метод

Initializes the widget.
public init ( )

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
public renderField ( )

run() публичный Метод

Runs the widget.
public run ( )

Описание свойств

$animated публичное свойство

whether the slide is animated or not.
public $animated

$debugMode публичное свойство

whether to display minified versions of the files or not
public $debugMode

$events публичное свойство

the JavaScript event handlers.
public $events

$inputType публичное свойство

input type. It can be 'radio' or 'checkbox'
public $inputType

$offColor публичное свойство

color when is off. It can be any of bootstrap button states. Defaults to 'warning'.
public $offColor

$offLabel публичное свойство

the label when is off. Defaults to 'Off'.
public $offLabel

$onColor публичное свойство

color when is on. It can be any of bootstrap button states. Defaults to 'primary'.
public $onColor

$onLabel публичное свойство

the label when is on. Defaults to 'On'.
public $onLabel

$pluginOptions защищенное свойство

the switch plugin options.
protected $pluginOptions

$size публичное свойство

size of switch button. Supports 'large', 'small' or 'mini'
public $size

$textLabel публичное свойство

the text label. Defaults to null.
public $textLabel