Class TbActiveForm
Bootstrap active form widget.
- CComponent
- CBaseController
- CWidget
- CActiveForm
- TbActiveForm
Copyright: Copyright © Christoffer Niska 2011-
License: New BSD License
Author: Christoffer Niska <ChristofferNiska@gmail.com>
Located at crisu83/yii-bootstrap/widgets/TbActiveForm.php
Methods summary
public
|
|
public
string
|
#
checkBoxRow( CModel $model, string $attribute, array $htmlOptions = array() )
Renders a checkbox input row. |
public
string
|
#
checkBoxListRow( CModel $model, string $attribute, array $data = array(), array $htmlOptions = array() )
Renders a checkbox list input row. |
public
string
|
#
checkBoxListInlineRow( CModel $model, string $attribute, array $data = array(), array $htmlOptions = array() )
Renders a checkbox list inline input row. |
public
string
|
#
dropDownListRow( CModel $model, string $attribute, array $data = array(), array $htmlOptions = array() )
Renders a drop-down list input row. |
public
string
|
#
fileFieldRow( CModel $model, string $attribute, array $htmlOptions = array() )
Renders a file field input row. |
public
string
|
#
passwordFieldRow( CModel $model, string $attribute, array $htmlOptions = array() )
Renders a password field input row. |
public
string
|
#
radioButtonRow( CModel $model, string $attribute, array $htmlOptions = array() )
Renders a radio button input row. |
public
string
|
#
radioButtonListRow( CModel $model, string $attribute, array $data = array(), array $htmlOptions = array() )
Renders a radio button list input row. |
public
string
|
#
radioButtonListInlineRow( CModel $model, string $attribute, array $data = array(), array $htmlOptions = array() )
Renders a radio button list inline input row. |
public
string
|
#
textFieldRow( CModel $model, string $attribute, array $htmlOptions = array() )
Renders a text field input row. |
public
string
|
#
textAreaRow( CModel $model, string $attribute, array $htmlOptions = array() )
Renders a text area input row. |
public
string
|
#
captchaRow( CModel $model, string $attribute, array $htmlOptions = array() )
Renders a captcha row. |
public
string
|
#
uneditableRow( CModel $model, string $attribute, array $htmlOptions = array() )
Renders an uneditable text field row. |
public
string
|
#
checkBoxList( CModel $model, string $attribute, array $data, array $htmlOptions = array() )
Renders a checkbox list for a model attribute. This method is a wrapper of CHtml::activeCheckBoxList. Please check CHtml::activeCheckBoxList for detailed information about the parameters for this method. |
public
string
|
#
radioButtonList( CModel $model, string $attribute, array $data, array $htmlOptions = array() )
Renders a radio button list for a model attribute. This method is a wrapper of CHtml::activeRadioButtonList. Please check CHtml::activeRadioButtonList for detailed information about the parameters for this method. |
protected
string
|
#
inputsList( boolean $checkbox, CModel $model, string $attribute, array $data, array $htmlOptions = array() )
Renders an input list. |
public
string
|
#
errorSummary( mixed $models, string $header = null, string $footer = null, array $htmlOptions = array() )
Displays a summary of validation errors for one or several models. This method is very similar to CHtml::errorSummary except that it also works when AJAX validation is performed. |
public
string
|
|
protected static
string
|
#
renderError( CModel $model, string $attribute, array $htmlOptions = array() )
Displays the first validation error for a model attribute. |
public
string
|
|
protected
string
|
Methods inherited from CActiveForm
checkBox()
,
dateField()
,
dropDownList()
,
emailField()
,
fileField()
,
hiddenField()
,
label()
,
labelEx()
,
listBox()
,
numberField()
,
passwordField()
,
radioButton()
,
rangeField()
,
run()
,
textArea()
,
textField()
,
urlField()
,
validate()
,
validateTabular()
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_VERTICAL
|
'vertical' |
|
string |
TYPE_INLINE
|
'inline' |
|
string |
TYPE_HORIZONTAL
|
'horizontal' |
|
string |
TYPE_SEARCH
|
'search' |
|
string |
INPUT_HORIZONTAL
|
'bootstrap.widgets.input.TbInputHorizontal' |
|
string |
INPUT_INLINE
|
'bootstrap.widgets.input.TbInputInline' |
|
string |
INPUT_SEARCH
|
'bootstrap.widgets.input.TbInputSearch' |
|
string |
INPUT_VERTICAL
|
'bootstrap.widgets.input.TbInputVertical' |
Properties summary
public
string
|
$type |
#
the form type. See class constants. |
public
string
|
$input |
#
input class. |
public
boolean
|
$inlineErrors |
#
indicates whether to display errors as blocks. |
Properties inherited from CActiveForm
$action
,
$attributes
,
$clientOptions
,
$enableAjaxValidation
,
$enableClientValidation
,
$errorMessageCssClass
,
$focus
,
$htmlOptions
,
$method
,
$stateful
,
$summaryID
Properties inherited from CWidget
$actionPrefix
,
$skin
Magic properties inherited from CWidget
$controller
,
$id
,
$owner
,
$viewPath