Phundament App Class Reference
  • Package
  • Class
  • Tree

Packages

  • bootstrap
    • widgets
      • input
  • Image
  • None
  • p3admin
  • p3extensions
    • behaviors
    • commands
    • components
    • helpers
    • widgets
  • p3media
    • actions
    • controllers
    • models
  • p3pages
    • models
  • p3widgets
    • components
    • models
  • PHP
  • system
    • db
      • ar
    • gii
    • web
      • auth
      • helpers
      • widgets
  • yiiext
    • widgets
      • fancybox
      • lipsum
  • zii
    • widgets
      • grid

Classes

  • TbActiveForm
  • TbAlert
  • TbBadge
  • TbBreadcrumbs
  • TbButton
  • TbButtonColumn
  • TbButtonGroup
  • TbCarousel
  • TbCollapse
  • TbDataColumn
  • TbDetailView
  • TbDropdown
  • TbGridView
  • TbHeroUnit
  • TbLabel
  • TbListView
  • TbMenu
  • TbModal
  • TbNavbar
  • TbPager
  • TbProgress
  • TbScrollSpy
  • TbTabs
  • TbThumbnails
  • TbTypeahead

Class TbButton

Bootstrap button widget.

CComponent
Extended by CBaseController
Extended by CWidget
Extended by TbButton
Package: bootstrap\widgets
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
# init( )

Initializes the widget.

Initializes the widget.

Overrides

CWidget::init
public
# run( )

Runs the widget.

Runs the widget.

Overrides

CWidget::run
protected string
# createButton( )

Creates the button element.

Creates the button element.

Returns

string
the created button.
protected boolean
# hasDropdown( )

Returns whether the button has a dropdown.

Returns whether the button has a dropdown.

Returns

boolean
the result.

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'.

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'.

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'.

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

public string $icon
#

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

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

public string $label
#

the button label.

the button label.

public string $url
#

the button URL.

the button URL.

public boolean $block
#

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

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

public boolean $active
#

indicates whether the button is active.

indicates whether the button is active.

public boolean $disabled
#

indicates whether the button is disabled.

indicates whether the button is disabled.

public boolean $encodeLabel
#

indicates whether to encode the label.

indicates whether to encode the label.

public boolean $toggle
#

indicates whether to enable toggle.

indicates whether to enable toggle.

public string $loadingText
#

the loading text.

the loading text.

public string $completeText
#

the complete text.

the complete text.

public array $items
#

the dropdown button items.

the dropdown button items.

public array $htmlOptions
#

the HTML attributes for the widget container.

the HTML attributes for the widget container.

public array $ajaxOptions
#

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

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

public array $dropdownOptions
#

the HTML attributes for the dropdown menu.

the HTML attributes for the dropdown menu.

Since

0.9.11

Properties inherited from CWidget

$actionPrefix, $skin

Magic properties inherited from CWidget

$controller, $id, $owner, $viewPath

Phundament App Class Reference API documentation generated by ApiGen 2.8.0