YiiFoundation
  • Namespace
  • Class
  • Tree

Namespaces

  • foundation
    • enum
    • exception
    • helpers
    • widgets
      • base
  • PHP

Classes

  • Alert
  • Breadcrumbs
  • Clearing
  • Dropdown
  • FlexVideo
  • Interchange
  • JoyRide
  • Magellan
  • Orbit
  • Pager
  • Reveal
  • Section
  • SwitchButton
  • Tooltip
  • TopBar

Class SwitchButton

SwitchButton renders a foundation switch.

CWidget
Extended by foundation\widgets\base\Widget
Extended by foundation\widgets\base\Input
Extended by foundation\widgets\SwitchButton
Namespace: foundation\widgets
Package: foundation\widgets
Author: Antonio Ramirez <amigo.cobos@gmail.com>
See: http://foundation.zurb.com/docs/components/switch.html
Located at widgets/SwitchButton.php

Methods summary

public
# init( )

Widget's initialization

Widget's initialization

Overrides

foundation\widgets\base\Widget::init
public
# run( )

Renders the widget

Renders the widget

public string
# renderButtons( )

Returns the formatted button

Returns the formatted button

Returns

string
the resulting HTML

Methods inherited from foundation\widgets\base\Input

hasModel(), resolveNameID()

Methods inherited from foundation\widgets\base\Widget

display(), registerAssets(), registerEvents(), registerPlugin()

Magic methods summary

Properties summary

public string $size
#

size of the switch button

size of the switch button

public string $radius
#

radius style of the switch button

radius style of the switch button

public string $onLabel
#

the On Label

the On Label

public string $offLabel
#

the Off Label

the Off Label

Properties inherited from foundation\widgets\base\Input

$attribute, $model, $name, $value

Properties inherited from foundation\widgets\base\Widget

$assets, $htmlOptions, $links

YiiFoundation API documentation generated by ApiGen 2.8.0