PHP Класс TbButton

См. также: http://twitter.github.com/bootstrap/base-css.html#buttons
Наследование: extends CWidget
Показать файл Открыть проект Примеры использования класса

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

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

Открытые методы

Метод Описание
init ( ) ### .init()
run ( ) ### .run()

Защищенные методы

Метод Описание
createButton ( ) : string ### .createButton()
hasDropdown ( ) : boolean ### .hasDropdown()

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

createButton() защищенный Метод

Creates the button element.
protected createButton ( ) : string
Результат string the created button.

hasDropdown() защищенный Метод

Returns whether the button has a dropdown.
protected hasDropdown ( ) : boolean
Результат boolean the result.

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

Initializes the widget.
public init ( )

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

Runs the widget.
public run ( )

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

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

indicates whether the button is active.
public $active

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

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

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

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

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

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

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

the complete text.
public $completeText

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

indicates whether the button is disabled.
public $disabled

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

the HTML attributes for the dropdown menu.
С версии: 0.9.11
public $dropdownOptions

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

indicates whether to encode the label.
public $encodeLabel

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

the HTML attributes for the widget container.
public $htmlOptions

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

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

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

the dropdown button items.
public $items

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

the button label.
public $label

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

the loading text.
public $loadingText

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

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

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

indicates whether to enable toggle.
public $toggle

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

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

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

the button URL.
public $url

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

the button is visible or not
С версии: 0.9.11
public $visible