YiiWheels
  • Package
  • Class
  • Tree

Packages

  • None
  • yiiwheels
    • behaviors
    • widgets
    • widgets
      • ace
      • box
      • datepicker
      • daterangepicker
      • datetimepicker
      • detail
      • fileupload
      • fileuploader
      • gallery
      • google
      • grid
        • behaviors
        • operations
      • highcharts
      • maskInput
      • maskmoney
      • modal
      • multiselect
      • rangeslider
      • redactor
      • select2
      • sparklines
      • switch
      • timeago
      • timepicker
      • toggle
      • typeahead

Classes

  • WhSwitch

Class WhSwitch

CInputWidget
Extended by WhSwitch
Package: YiiWheels\widgets\switch
Copyright: Copyright © 2amigos.us 2013-
License: New BSD License
Author: Antonio Ramirez <amigo.cobos@gmail.com>
Located at widgets/switch/WhSwitch.php

Methods summary

public
# init( )

Initializes the widget.

Initializes the widget.

Throws

CException
public
# run( )

Runs the widget.

Runs the widget.

public
# renderField( )

Renders the typeahead field

Renders the typeahead field

public
# registerClientScript( )

Registers required client script for bootstrap typeahead. It is not used through bootstrap->registerPlugin in order to attach events if any

Registers required client script for bootstrap typeahead. It is not used through bootstrap->registerPlugin in order to attach events if any

Magic methods summary

Properties summary

public string $inputType
#

input type. It can be 'radio' or 'checkbox'

input type. It can be 'radio' or 'checkbox'

public string $size
#

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

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

public string $onColor
#

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

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

public string $offColor
#

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

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

public boolean $animated
#

whether the slide is animated or not.

whether the slide is animated or not.

public string $onLabel
#

the label when is on. Defaults to 'On'.

the label when is on. Defaults to 'On'.

public string $offLabel
#

the label when is off. Defaults to 'Off'.

the label when is off. Defaults to 'Off'.

public string $textLabel
#

the text label. Defaults to null.

the text label. Defaults to null.

public string[] $events
#

the JavaScript event handlers.

the JavaScript event handlers.

public boolean $debugMode
#

whether to display minified versions of the files or not

whether to display minified versions of the files or not

YiiWheels API documentation generated by ApiGen 2.8.0