Class TbButton
Bootstrap button widget.
- CComponent
- CBaseController
- CWidget
- TbButton
Copyright: Copyright © Christoffer Niska 2011-
License: New BSD License
Author: Christoffer Niska <ChristofferNiska@gmail.com>
See: http://twitter.github.com/bootstrap/base-css.html#buttons
Located at crisu83/yii-bootstrap/widgets/TbButton.php
Methods summary
public
|
|
public
|
|
protected
string
|
|
protected
boolean
|
Methods inherited from CWidget
__construct()
,
actions()
,
getController()
,
getId()
,
getOwner()
,
getViewFile()
,
getViewPath()
,
render()
,
setId()
Methods inherited from CBaseController
beginCache()
,
beginClip()
,
beginContent()
,
beginWidget()
,
createWidget()
,
endCache()
,
endClip()
,
endContent()
,
endWidget()
,
renderFile()
,
renderInternal()
,
widget()
Methods inherited from CComponent
__call()
,
__get()
,
__isset()
,
__set()
,
__unset()
,
asa()
,
attachBehavior()
,
attachBehaviors()
,
attachEventHandler()
,
canGetProperty()
,
canSetProperty()
,
detachBehavior()
,
detachBehaviors()
,
detachEventHandler()
,
disableBehavior()
,
disableBehaviors()
,
enableBehavior()
,
enableBehaviors()
,
evaluateExpression()
,
getEventHandlers()
,
hasEvent()
,
hasEventHandler()
,
hasProperty()
,
raiseEvent()
Magic methods summary
Constants summary
string |
BUTTON_LINK
|
'link' |
|
string |
BUTTON_BUTTON
|
'button' |
|
string |
BUTTON_SUBMIT
|
'submit' |
|
string |
BUTTON_SUBMITLINK
|
'submitLink' |
|
string |
BUTTON_RESET
|
'reset' |
|
string |
BUTTON_AJAXLINK
|
'ajaxLink' |
|
string |
BUTTON_AJAXBUTTON
|
'ajaxButton' |
|
string |
BUTTON_AJAXSUBMIT
|
'ajaxSubmit' |
|
string |
TYPE_PRIMARY
|
'primary' |
|
string |
TYPE_INFO
|
'info' |
|
string |
TYPE_SUCCESS
|
'success' |
|
string |
TYPE_WARNING
|
'warning' |
|
string |
TYPE_DANGER
|
'danger' |
|
string |
TYPE_INVERSE
|
'inverse' |
|
string |
TYPE_LINK
|
'link' |
|
string |
SIZE_MINI
|
'mini' |
|
string |
SIZE_SMALL
|
'small' |
|
string |
SIZE_LARGE
|
'large' |
Properties summary
public
string
|
$buttonType |
#
the button callback types. Valid values are 'link', 'button', 'submit', 'submitLink', 'reset', 'ajaxLink', 'ajaxButton' and 'ajaxSubmit'. |
public
string
|
$type |
#
the button type. Valid values are 'primary', 'info', 'success', 'warning', 'danger' and 'inverse'. |
public
string
|
$size |
#
the button size. Valid values are 'large', 'small' and 'mini'. |
public
string
|
$icon |
#
the button icon, e.g. 'ok' or 'remove white'. |
public
string
|
$label |
#
the button label. |
public
string
|
$url |
#
the button URL. |
public
boolean
|
$block |
#
indicates whether the button should span the full width of the a parent. |
public
boolean
|
$active |
#
indicates whether the button is active. |
public
boolean
|
$disabled |
#
indicates whether the button is disabled. |
public
boolean
|
$encodeLabel |
#
indicates whether to encode the label. |
public
boolean
|
$toggle |
#
indicates whether to enable toggle. |
public
string
|
$loadingText |
#
the loading text. |
public
string
|
$completeText |
#
the complete text. |
public
array
|
$items |
#
the dropdown button items. |
public
array
|
$htmlOptions |
#
the HTML attributes for the widget container. |
public
array
|
$ajaxOptions |
#
the button ajax options (used by 'ajaxLink' and 'ajaxButton'). |
public
array
|
$dropdownOptions |
#
the HTML attributes for the dropdown menu. |
Properties inherited from CWidget
$actionPrefix
,
$skin
Magic properties inherited from CWidget
$controller
,
$id
,
$owner
,
$viewPath