Class yii\bootstrap4\Html
Inheritance | yii\bootstrap4\Html » yii\bootstrap4\BaseHtml » yii\helpers\Html |
---|
Html is an enhanced version of \yii\helpers\Html helper class dedicated to the Bootstrap needs.
This class inherits all functionality available at \yii\helpers\Html and can be used as substitute.
Attention: do not confuse yii\bootstrap4\Html and \yii\helpers\Html, be careful in which class you are using inside your views.
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$autoIdPrefix | string | The prefix to the automatically generated widget IDs. | yii\bootstrap4\BaseHtml |
$counter | integer | A counter used to generate \yii\bootstrap4\id for widgets. | yii\bootstrap4\BaseHtml |
$dataAttributes | array | List of tag attributes that should be specially handled when their values are of array type. | yii\bootstrap4\BaseHtml |
Public Methods
Method | Description | Defined By |
---|---|---|
activeStaticControl() | Generates a Bootstrap static form control for the given model attribute. | yii\bootstrap4\BaseHtml |
checkboxList() | yii\bootstrap4\BaseHtml | |
error() | yii\bootstrap4\BaseHtml | |
radioList() | yii\bootstrap4\BaseHtml | |
staticControl() | Renders Bootstrap static form control. | yii\bootstrap4\BaseHtml |
Protected Methods
Method | Description | Defined By |
---|---|---|
booleanInput() | yii\bootstrap4\BaseHtml | |
getId() | Returns an autogenerated ID | yii\bootstrap4\BaseHtml |