PHP Class TbButton

See also: http://twitter.github.com/bootstrap/base-css.html#buttons
Inheritance: extends CWidget
Exibir arquivo Open project: yinhe/yincart Class Usage Examples

Public Properties

Property Type Description
$active indicates whether the button is active.
$ajaxOptions the button ajax options (used by 'ajaxLink' and 'ajaxButton').
$block indicates whether the button should span the full width of the a parent.
$buttonType the button callback types. Valid values are 'link', 'button', 'submit', 'submitLink', 'reset', 'ajaxLink', 'ajaxButton' and 'ajaxSubmit'.
$completeText the complete text.
$disabled indicates whether the button is disabled.
$dropdownOptions the HTML attributes for the dropdown menu.
$encodeLabel indicates whether to encode the label.
$htmlOptions the HTML attributes for the widget container.
$icon the button icon, e.g. 'ok' or 'remove white'.
$items the dropdown button items.
$label the button label.
$loadingText the loading text.
$size the button size. Valid values are 'large', 'small' and 'mini'.
$toggle indicates whether to enable toggle.
$type the button type. Valid values are 'primary', 'info', 'success', 'warning', 'danger' and 'inverse'.
$url the button URL.
$visible the button is visible or not

Public Methods

Method Description
init ( ) ### .init()
run ( ) ### .run()

Protected Methods

Method Description
createButton ( ) : string ### .createButton()
hasDropdown ( ) : boolean ### .hasDropdown()

Method Details

createButton() protected method

Creates the button element.
protected createButton ( ) : string
return string the created button.

hasDropdown() protected method

Returns whether the button has a dropdown.
protected hasDropdown ( ) : boolean
return boolean the result.

init() public method

Initializes the widget.
public init ( )

run() public method

Runs the widget.
public run ( )

Property Details

$active public_oe property

indicates whether the button is active.
public $active

$ajaxOptions public_oe property

the button ajax options (used by 'ajaxLink' and 'ajaxButton').
public $ajaxOptions

$block public_oe property

indicates whether the button should span the full width of the a parent.
public $block

$buttonType public_oe property

the button callback types. Valid values are 'link', 'button', 'submit', 'submitLink', 'reset', 'ajaxLink', 'ajaxButton' and 'ajaxSubmit'.
public $buttonType

$completeText public_oe property

the complete text.
public $completeText

$disabled public_oe property

indicates whether the button is disabled.
public $disabled

$dropdownOptions public_oe property

the HTML attributes for the dropdown menu.
Since: 0.9.11
public $dropdownOptions

$encodeLabel public_oe property

indicates whether to encode the label.
public $encodeLabel

$htmlOptions public_oe property

the HTML attributes for the widget container.
public $htmlOptions

$icon public_oe property

the button icon, e.g. 'ok' or 'remove white'.
public $icon

$items public_oe property

the dropdown button items.
public $items

$label public_oe property

the button label.
public $label

$loadingText public_oe property

the loading text.
public $loadingText

$size public_oe property

the button size. Valid values are 'large', 'small' and 'mini'.
public $size

$toggle public_oe property

indicates whether to enable toggle.
public $toggle

$type public_oe property

the button type. Valid values are 'primary', 'info', 'success', 'warning', 'danger' and 'inverse'.
public $type

$url public_oe property

the button URL.
public $url

$visible public_oe property

the button is visible or not
Since: 0.9.11
public $visible