TEXT_ALIGN_LEFT
TEXT_ALIGN_LEFT
Bootstrap HTML helper.
smallAbbr(string $text, string $word, array $htmlOptions) : string
Generates a small abbreviation with a help text.
string | $text | the abbreviation. |
string | $word | the word the abbreviation is for. |
array | $htmlOptions | additional HTML attributes. |
the generated abbreviation.
tag(string $tag, array $htmlOptions, mixed $content, boolean $closeTag) : string
Generates an HTML element.
string | $tag | the tag name. |
array | $htmlOptions | the element attributes. |
mixed | $content | the content to be enclosed between open and close element tags. |
boolean | $closeTag | whether to generate the close tag. |
the generated HTML element tag.
formTb(string $layout, string $action, string $method, array $htmlOptions) : string
Generates a form tag.
string | $layout | the form layout. |
string | $action | the form action URL. |
string | $method | form method (e.g. post, get). |
array | $htmlOptions | additional HTML attributes. |
the generated tag.
beginFormTb(string $layout, string $action, string $method, array $htmlOptions) : string
Generates an open form tag.
string | $layout | the form layout. |
string | $action | the form action URL. |
string | $method | form method (e.g. post, get). |
array | $htmlOptions | additional HTML attributes. |
the generated tag.
statefulFormTb( $layout, mixed $action, string $method, array $htmlOptions) : string
Generates a stateful form tag.
$layout | ||
mixed | $action | the form action URL. |
string | $method | form method (e.g. post, get). |
array | $htmlOptions | additional HTML attributes. |
the generated form tag.
dropDownList(string $name, string $select, array $data, $htmlOptions) : string
Generates a drop down list.
string | $name | the input name. |
string | $select | the selected value. |
array | $data | data for generating the list options (value=>display). |
$htmlOptions |
the generated drop down list.
listBox(string $name, mixed $select, array $data, array $htmlOptions) : string
Generates a list box.
string | $name | the input name. |
mixed | $select | the selected value(s). |
array | $data | data for generating the list options (value=>display). |
array | $htmlOptions | additional HTML attributes. |
the generated list box
radioButtonList(string $name, mixed $select, array $data, array $htmlOptions) : string
Generates a radio button list.
string | $name | name of the radio button list. |
mixed | $select | selection of the radio buttons. |
array | $data | $data value-label pairs used to generate the radio button list. |
array | $htmlOptions | additional HTML attributes. |
the generated list.
inlineRadioButtonList(string $name, mixed $select, array $data, array $htmlOptions) : string
Generates an inline radio button list.
string | $name | name of the radio button list. |
mixed | $select | selection of the radio buttons. |
array | $data | $data value-label pairs used to generate the radio button list. |
array | $htmlOptions | additional HTML attributes. |
the generated list.
checkBoxList(string $name, mixed $select, array $data, array $htmlOptions) : string
Generates a check box list.
string | $name | name of the check box list. |
mixed | $select | selection of the check boxes. |
array | $data | $data value-label pairs used to generate the check box list. |
array | $htmlOptions | additional HTML attributes. |
the generated list.
inlineCheckBoxList(string $name, mixed $select, array $data, array $htmlOptions) : string
Generates an inline check box list.
string | $name | name of the check box list. |
mixed | $select | selection of the check boxes. |
array | $data | $data value-label pairs used to generate the check box list. |
array | $htmlOptions | additional HTML attributes. |
the generated list.
textFieldControlGroup(string $name, string $value, array $htmlOptions) : string
Generates a control group with a text field.
string | $name | the input name. |
string | $value | the input value. |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
passwordFieldControlGroup(string $name, string $value, array $htmlOptions) : string
Generates a control group with a password field.
string | $name | the input name. |
string | $value | the input value. |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
urlFieldControlGroup(string $name, string $value, array $htmlOptions) : string
Generates a control group with an url field.
string | $name | the input name. |
string | $value | the input value. |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
emailFieldControlGroup(string $name, string $value, array $htmlOptions) : string
Generates a control group with an email field.
string | $name | the input name. |
string | $value | the input value. |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
numberFieldControlGroup(string $name, string $value, array $htmlOptions) : string
Generates a control group with a number field.
string | $name | the input name. |
string | $value | the input value. |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
rangeFieldControlGroup(string $name, string $value, array $htmlOptions) : string
Generates a control group with a range field.
string | $name | the input name |
string | $value | the input value |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
dateFieldControlGroup(string $name, string $value, array $htmlOptions) : string
Generates a control group with a file field.
string | $name | the input name. |
string | $value | the input value. |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
textAreaControlGroup(string $name, string $value, array $htmlOptions) : string
Generates a control group with a text area.
string | $name | the input name. |
string | $value | the input value. |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
fileFieldControlGroup(string $name, string $value, array $htmlOptions) : string
Generates a control group with a file field.
string | $name | the input name. |
string | $value | the input value. |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
radioButtonControlGroup(string $name, string $checked, array $htmlOptions) : string
Generates a control group with a radio button.
string | $name | the input name. |
string | $checked | whether the radio button is checked. |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
checkBoxControlGroup(string $name, string $checked, array $htmlOptions) : string
Generates a control group with a check box.
string | $name | the input name. |
string | $checked | whether the check box is checked. |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
dropDownListControlGroup(string $name, string $select, array $data, array $htmlOptions) : string
Generates a control group with a drop down list.
string | $name | the input name. |
string | $select | the selected value. |
array | $data | data for generating the list options (value=>display). |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
listBoxControlGroup(string $name, string $select, array $data, array $htmlOptions) : string
Generates a control group with a list box.
string | $name | the input name. |
string | $select | the selected value. |
array | $data | data for generating the list options (value=>display). |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
radioButtonListControlGroup(string $name, string $select, array $data, array $htmlOptions) : string
Generates a control group with a radio button list.
string | $name | the input name. |
string | $select | the selected value. |
array | $data | data for generating the list options (value=>display). |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
inlineRadioButtonListControlGroup(string $name, string $select, array $data, array $htmlOptions) : string
Generates a control group with an inline radio button list.
string | $name | the input name. |
string | $select | the selected value. |
array | $data | data for generating the list options (value=>display). |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
checkBoxListControlGroup(string $name, string $select, array $data, array $htmlOptions) : string
Generates a control group with a check box list.
string | $name | the input name. |
string | $select | the selected value. |
array | $data | data for generating the list options (value=>display). |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
inlineCheckBoxListControlGroup(string $name, string $select, array $data, array $htmlOptions) : string
Generates a control group with an inline check box list.
string | $name | the input name. |
string | $select | the selected value. |
array | $data | data for generating the list options (value=>display). |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
controlGroup(string $type, string $name, string $value, array $htmlOptions, array $data) : string
Generates a form control group.
string | $type | the input type. |
string | $name | the input name. |
string | $value | the input value. |
array | $htmlOptions | additional HTML attributes. |
array | $data | data for multiple select inputs. |
the generated control group.
customControlGroup(string $input, string $name, array $htmlOptions) : string
Generates a custom (pre-rendered) form control group.
string | $input | the rendered input. |
string | $name | the input name. |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
createInput(string $type, string $name, string $value, array $htmlOptions, array $data) : string
Creates a form input of the given type.
string | $type | the input type. |
string | $name | the input name. |
string | $value | the input value. |
array | $htmlOptions | additional HTML attributes. |
array | $data | data for multiple select inputs. |
if the input type is invalid.
the input.
activeTextField(\CModel $model, string $attribute, array $htmlOptions) : string
Generates a text field input for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $htmlOptions | additional HTML attributes. |
the generated input field.
activePasswordField(\CModel $model, string $attribute, array $htmlOptions) : string
Generates a password field input for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $htmlOptions | additional HTML attributes. |
the generated input field.
activeUrlField(\CModel $model, string $attribute, array $htmlOptions) : string
Generates an url field input for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $htmlOptions | additional HTML attributes. |
the generated input field.
activeEmailField(\CModel $model, string $attribute, array $htmlOptions) : string
Generates an email field input for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $htmlOptions | additional HTML attributes. |
the generated input field.
activeNumberField(\CModel $model, string $attribute, array $htmlOptions) : string
Generates a number field input for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $htmlOptions | additional HTML attributes. |
the generated input field.
activeRangeField(\CModel $model, string $attribute, array $htmlOptions) : string
Generates a range field input for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $htmlOptions | additional HTML attributes. |
the generated input field.
activeDateField(\CModel $model, string $attribute, array $htmlOptions) : string
Generates a date field input for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $htmlOptions | additional HTML attributes. |
the generated input field.
activeFileField(\CModel $model, string $attribute, array $htmlOptions) : string
Generates a file field input for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $htmlOptions | additional HTML attributes. |
the generated input field.
activeTextArea(\CModel $model, string $attribute, array $htmlOptions) : string
Generates a text area input for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $htmlOptions | additional HTML attributes. |
the generated text area.
activeRadioButton(\CModel $model, string $attribute, array $htmlOptions) : string
Generates a radio button for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $htmlOptions | additional HTML attributes. |
the generated radio button.
activeCheckBox(\CModel $model, string $attribute, array $htmlOptions) : string
Generates a check box for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $htmlOptions | additional HTML attributes. |
the generated check box.
activeDropDownList(\CModel $model, string $attribute, array $data, $htmlOptions) : string
Generates a drop down list for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $data | data for generating the list options (value=>display). |
$htmlOptions |
the generated drop down list.
activeListBox(\CModel $model, string $attribute, array $data, array $htmlOptions) : string
Generates a list box for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $data | data for generating the list options (value=>display). |
array | $htmlOptions | additional HTML attributes. |
the generated list box
activeRadioButtonList(\CModel $model, string $attribute, array $data, array $htmlOptions) : string
Generates a radio button list for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $data | $data value-label pairs used to generate the radio button list. |
array | $htmlOptions | additional HTML attributes. |
the generated list.
activeInlineRadioButtonList(\CModel $model, string $attribute, array $data, array $htmlOptions) : string
Generates an inline radio button list for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $data | $data value-label pairs used to generate the radio button list. |
array | $htmlOptions | additional HTML attributes. |
the generated list.
activeCheckBoxList(\CModel $model, string $attribute, array $data, array $htmlOptions) : string
Generates a check box list for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $data | $data value-label pairs used to generate the check box list. |
array | $htmlOptions | additional HTML attributes. |
the generated list.
activeInlineCheckBoxList(\CModel $model, string $attribute, array $data, array $htmlOptions) : string
Generates an inline check box list for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $data | $data value-label pairs used to generate the check box list. |
array | $htmlOptions | additional HTML attributes. |
the generated list.
activeUneditableField(\CModel $model, string $attribute, array $htmlOptions) : string
Generates an uneditable input for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $htmlOptions | additional HTML attributes. |
the generated input.
activeSearchQueryField(\CModel $model, string $attribute, array $htmlOptions) : string
Generates a search query input for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $htmlOptions | additional HTML attributes. |
the generated input.
activeTextFieldControlGroup(\CModel $model, string $attribute, array $htmlOptions) : string
Generates a control group with a text field for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
activePasswordFieldControlGroup(\CModel $model, string $attribute, array $htmlOptions) : string
Generates a control group with a password field for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
activeUrlFieldControlGroup(\CModel $model, string $attribute, array $htmlOptions) : string
Generates a control group with a url field for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
activeEmailFieldControlGroup(\CModel $model, string $attribute, array $htmlOptions) : string
Generates a control group with a email field for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
activeNumberFieldControlGroup(\CModel $model, string $attribute, array $htmlOptions) : string
Generates a control group with a number field for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
activeRangeFieldControlGroup(\CModel $model, string $attribute, array $htmlOptions) : string
Generates a control group with a range field for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
activeDateFieldControlGroup(\CModel $model, string $attribute, array $htmlOptions) : string
Generates a control group with a date field for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
activeTextAreaControlGroup(\CModel $model, string $attribute, array $htmlOptions) : string
Generates a control group with a text area for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
activeFileFieldControlGroup(\CModel $model, string $attribute, array $htmlOptions) : string
Generates a control group with a file field for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
activeRadioButtonControlGroup(\CModel $model, string $attribute, array $htmlOptions) : string
Generates a control group with a radio button for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
activeDropDownListControlGroup(\CModel $model, string $attribute, array $data, array $htmlOptions) : string
Generates a control group with a drop down list for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $data | data for generating the list options (value=>display). |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
activeListBoxControlGroup( $model, $attribute, array $data, array $htmlOptions) : string
Generates a control group with a list box for a model attribute.
$model | ||
$attribute | ||
array | $data | data for generating the list options (value=>display). |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
activeRadioButtonListControlGroup(\CModel $model, string $attribute, array $data, array $htmlOptions) : string
Generates a control group with a radio button list for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $data | data for generating the list options (value=>display). |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
activeInlineRadioButtonListControlGroup( $model, $attribute, array $data, array $htmlOptions) : string
Generates a control group with an inline radio button list for a model attribute.
$model | ||
$attribute | ||
array | $data | data for generating the list options (value=>display). |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
activeCheckBoxListControlGroup(\CModel $model, string $attribute, array $data, array $htmlOptions) : string
Generates a control group with a check box list for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $data | data for generating the list options (value=>display). |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
activeInlineCheckBoxListControlGroup(\CModel $model, string $attribute, array $data, array $htmlOptions) : string
Generates a control group with an inline check box list for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $data | data for generating the list options (value=>display). |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
activeUneditableFieldControlGroup(\CModel $model, string $attribute, array $htmlOptions) : string
Generates a control group with a uneditable field for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
activeSearchQueryControlGroup(\CModel $model, string $attribute, array $htmlOptions) : string
Generates a control group with a search field for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
activeControlGroup(string $type, \CModel $model, string $attribute, array $htmlOptions, array $data) : string
Generates an active form row.
string | $type | the input type. |
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $htmlOptions | additional HTML attributes. |
array | $data | data for multiple select inputs. |
the generated control group.
customActiveControlGroup(string $input, \CModel $model, string $attribute, array $htmlOptions) : string
Generates a custom (pre-rendered) active form control group.
string | $input | the rendered input. |
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $htmlOptions | additional HTML attributes. |
the generated control group.
createActiveInput(string $type, \CModel $model, string $attribute, array $htmlOptions, array $data) : string
Creates an active form input of the given type.
string | $type | the input type. |
\CModel | $model | the model instance. |
string | $attribute | the attribute name. |
array | $htmlOptions | additional HTML attributes. |
array | $data | data for multiple select inputs. |
if the input type is invalid.
the input.
errorSummary(mixed $model, string $header, string $footer, array $htmlOptions) : string
Displays a summary of validation errors for one or several models.
mixed | $model | the models whose input errors are to be displayed. |
string | $header | a piece of HTML code that appears in front of the errors. |
string | $footer | a piece of HTML code that appears at the end of the errors. |
array | $htmlOptions | additional HTML attributes to be rendered in the container div tag. |
the error summary. Empty if no errors are found.
error(\CModel $model, string $attribute, array $htmlOptions) : string
Displays the first validation error for a model attribute.
\CModel | $model | the data model. |
string | $attribute | the attribute name. |
array | $htmlOptions | additional HTML attributes. |
the rendered error. Empty if no errors are found.
link(string $text, mixed $url, array $htmlOptions) : string
Generates a hyperlink tag.
string | $text | link body. It will NOT be HTML-encoded. |
mixed | $url | a URL or an action route that can be used to create a URL. |
array | $htmlOptions | additional HTML attributes. |
the generated hyperlink
ajaxLink(string $text, mixed $url, array $ajaxOptions, array $htmlOptions) : string
Generates a link that can initiate AJAX requests.
string | $text | the link body (it will NOT be HTML-encoded.) |
mixed | $url | the URL for the AJAX request. |
array | $ajaxOptions | AJAX options. |
array | $htmlOptions | additional HTML attributes. |
the generated link.
ajaxButton(string $label, mixed $url, array $ajaxOptions, array $htmlOptions) : string
Generates a push button that can initiate AJAX requests.
string | $label | the button label. |
mixed | $url | the URL for the AJAX request. |
array | $ajaxOptions | AJAX options. |
array | $htmlOptions | additional HTML attributes. |
the generated button.
ajaxSubmitButton(string $label, mixed $url, array $ajaxOptions, array $htmlOptions) : string
Generates a push button that can submit the current form in POST method.
string | $label | the button label |
mixed | $url | the URL for the AJAX request. |
array | $ajaxOptions | AJAX options. |
array | $htmlOptions | additional HTML attributes. |
the generated button.
dropdownToggleMenuLink(string $label, string $url, array $htmlOptions, int $depth) : string
Generates a dropdown toggle menu item.
string | $label | the menu item text. |
string | $url | the menu item URL. |
array | $htmlOptions | additional HTML attributes. |
int | $depth | the menu depth at which this link is located |
the generated menu item.
splitButtonDropdown(string $label, array $items, array $htmlOptions) : string
Generates a button with a split dropdown menu.
string | $label | the button label text. |
array | $items | the menu items. |
array | $htmlOptions | additional HTML attributes. |
the generated button.
navbarSearchForm(mixed $action, string $method, array $htmlOptions) : string
Generates a navbar search form.
mixed | $action | the form action URL. |
string | $method | form method (e.g. post, get). |
array | $htmlOptions | additional HTML attributes |
the generated form.
thumbnailLink(string $content, mixed $url, array $htmlOptions) : string
Generates a link thumbnail.
string | $content | the thumbnail content. |
mixed | $url | the url that the thumbnail links to. |
array | $htmlOptions | additional HTML attributes. |
the generated thumbnail.
media(string $image, string $heading, string $content, array $htmlOptions) : string
Generates a single media object.
string | $image | the image url. |
string | $heading | the heading text. |
string | $content | the content text. |
array | $htmlOptions | additional HTML attributes. |
the media object.
tooltip(string $label, mixed $url, string $content, array $htmlOptions) : string
Generates a tooltip.
string | $label | the tooltip link label text. |
mixed | $url | the link url. |
string | $content | the tooltip content text. |
array | $htmlOptions | additional HTML attributes. |
the generated tooltip.
popover(string $label, string $title, string $content, array $htmlOptions) : string
Generates a popover.
string | $label | the popover link label text. |
string | $title | the popover title text. |
string | $content | the popover content text. |
array | $htmlOptions | additional HTML attributes. |
the generated popover.
carouselItem(string $content, string $label, string $caption, array $htmlOptions) : string
Generates a carousel item.
string | $content | the content. |
string | $label | the item label text. |
string | $caption | the item caption text. |
array | $htmlOptions | additional HTML attributes. |
the generated item.
carouselIndicators(string $target, integer $numSlides, array $htmlOptions) : string
Generates an indicator for the carousel.
string | $target | the CSS selector for the target element. |
integer | $numSlides | the number of slides. |
array | $htmlOptions | additional HTML attributes. |
the generated indicators.
textInputField(string $type, string $name, string $value, array $htmlOptions) : string
Generates an input HTML tag.
This method generates an input HTML tag based on the given input name and value.
string | $type | the input type. |
string | $name | the input name. |
string | $value | the input value. |
array | $htmlOptions | additional HTML attributes. |
the generated input tag.
createCheckBoxAndRadioButtonLabel(string $label, string $input, array $htmlOptions) : string
Generates a label for a checkbox or radio input by wrapping the input.
string | $label | the label text. |
string | $input | the input. |
array | $htmlOptions | additional HTML attributes. |
the generated label.
activeTextInputField(string $type, \CModel $model, string $attribute, array $htmlOptions) : string
Generates an input HTML tag for a model attribute.
This method generates an input HTML tag based on the given input name and value.
string | $type | the input type. |
\CModel | $model | the data model. |
string | $attribute | the attribute. |
array | $htmlOptions | additional HTML attributes. |
the generated input tag.
btnDropdown(string $type, string $label, array $items, array $htmlOptions) : string
Generates a button dropdown.
string | $type | the button type. |
string | $label | the button label text. |
array | $items | the menu items. |
array | $htmlOptions | additional HTML attributes. |
the generated button.
createButton(string $type, string $label, array $htmlOptions) : string
Creates a button the of given type.
string | $type | the button type. |
string | $label | the button label. |
array | $htmlOptions | additional HTML attributes. |
if the button type is valid.
the button.
menuDropdown(string $label, string $url, array $items, array $htmlOptions, integer $depth) : string
Generates a menu dropdown.
string | $label | the link label. |
string | $url | the link URL. |
array | $items | the menu configuration. |
array | $htmlOptions | additional HTML attributes. |
integer | $depth | the current depth. |
the generated dropdown.
tooltipPopover(string $label, mixed $url, string $title, array $htmlOptions) : string
Generates a base tooltip.
string | $label | the tooltip link label text. |
mixed | $url | the link url. |
string | $title | the tooltip title text. |
array | $htmlOptions | additional HTML attributes. |
the generated tooltip.