Class TbInput
Bootstrap input widget. Used for rendering inputs according to Bootstrap standards.
- CComponent
-
CBaseController
-
CWidget
-
CInputWidget
-
TbInput
Direct known subclasses
Indirect known subclasses
Package: bootstrap\widgets\input
Copyright: Copyright © Christoffer Niska 2011-
License: New BSD License
Author: Christoffer Niska <ChristofferNiska@gmail.com>
Located at crisu83/yii-bootstrap/widgets/input/TbInput.php
Methods summary
public
|
|
protected
|
|
public
|
|
protected
string
|
|
protected
string
|
|
protected
string
|
|
protected
string
|
#
getAttributeId( string $attribute )
Returns the id that should be used for the specified attribute |
protected
string
|
|
protected
string
|
|
protected
string
|
|
protected
string
|
|
protected
boolean
|
|
abstract protected
string
|
|
abstract protected
string
|
|
abstract protected
string
|
|
abstract protected
string
|
|
abstract protected
string
|
|
abstract protected
string
|
|
abstract protected
string
|
|
abstract protected
string
|
|
abstract protected
string
|
|
abstract protected
string
|
|
abstract protected
string
|
|
abstract protected
string
|
|
abstract protected
string
|
Methods inherited from CInputWidget
hasModel()
,
resolveNameID()
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 |
TYPE_CHECKBOX
|
'checkbox' |
|
string |
TYPE_CHECKBOXLIST
|
'checkboxlist' |
|
string |
TYPE_CHECKBOXLIST_INLINE
|
'checkboxlist_inline' |
|
string |
TYPE_DROPDOWN
|
'dropdownlist' |
|
string |
TYPE_FILE
|
'filefield' |
|
string |
TYPE_PASSWORD
|
'password' |
|
string |
TYPE_RADIO
|
'radiobutton' |
|
string |
TYPE_RADIOLIST
|
'radiobuttonlist' |
|
string |
TYPE_RADIOLIST_INLINE
|
'radiobuttonlist_inline' |
|
string |
TYPE_TEXTAREA
|
'textarea' |
|
string |
TYPE_TEXT
|
'textfield' |
|
string |
TYPE_CAPTCHA
|
'captcha' |
|
string |
TYPE_UNEDITABLE
|
'uneditable' |
Properties summary
public
|
$form |
#
the associated form widget. |
public
string
|
$label |
#
the input label text. |
public
string
|
$type |
#
the input type. Following types are supported: checkbox, checkboxlist, dropdownlist, filefield, password, radiobutton, radiobuttonlist, textarea, textfield, captcha and uneditable. |
public
array
|
$data |
#
the data for list inputs. |
public
string
|
$prependText |
#
text to prepend. |
public
string
|
$appendText |
#
text to append. |
public
string
|
$hintText |
#
the hint text. |
public
array
|
$labelOptions |
#
label html attributes. |
public
array
|
$prependOptions |
#
prepend html attributes. |
public
array
|
$appendOptions |
#
append html attributes. |
public
array
|
$hintOptions |
#
hint html attributes. |
public
array
|
$errorOptions |
#
error html attributes. |
public
array
|
$captchaOptions |
#
captcha html attributes. |
Properties inherited from CInputWidget
$attribute
,
$htmlOptions
,
$model
,
$name
,
$value
Properties inherited from CWidget
$actionPrefix
,
$skin
Magic properties inherited from CWidget
$controller
,
$id
,
$owner
,
$viewPath