bootstrap\ActiveField renderLabelParts()

renderLabelParts() protected method protected void renderLabelParts ( $label = null, $options = [] )$label string|null The label or null to use model label $options array The tag options

bootstrap\ActiveField staticControl()

staticControl() public method (available since version 2.0.5) Renders Bootstrap static form control. See also http://getbootstrap.com/css/#forms-controls-static. public $this staticControl ( $options = [] )$options array The tag options in terms of name-value pairs. These will be rendered as the attributes of the resulting tag. There are also a special options: encode: boolean, whether value should be HTML-encoded or not. return $this The field object itself

bootstrap\ActiveField __construct()

__construct() public method Constructor. The default implementation does two things: Initializes the object with the given configuration $config. Call init(). If this method is overridden in a child class, it is recommended that the last parameter of the constructor is a configuration array, like $config here. call the parent implementation at the end of the constructor. public void __construct ( $config = [] )$config array Name-value pairs that will be used to initialize the object prop

bootstrap\ActiveField render()

render() public method Renders the whole field. This method will generate the label, error tag, input tag and hint tag (if any), and assemble them into HTML according to $template. public string render ( $content = null )$content string|callable The content within the field container. If null (not set), the default methods will be called to generate the label, error tag and input tag, and use them as the content. If a callable, it will be called to generate the content. The signature o

bootstrap\ActiveField radio()

radio() public method Renders a radio button. This method will generate the checked tag attribute according to the model attribute value. public $this radio ( $options = [], $enclosedByLabel = true )$options array The tag options in terms of name-value pairs. The following options are specially handled: uncheck: string, the value associated with the uncheck state of the radio button. If not set, it will take the default value 0. This method will render a hidden input so that if the radi

bootstrap\ActiveField radioList()

radioList() public method Renders a list of radio buttons. A radio button list is like a checkbox list, except that it only allows single selection. The selection of the radio buttons is taken from the value of the model attribute. public $this radioList ( $items, $options = [] )$items array The data item used to generate the radio buttons. The array values are the labels, while the array keys are the corresponding radio values. $options array Options (name => config) for the radio

bootstrap\ActiveField inline()

inline() public method public $this inline ( $value = true )$value boolean Whether to render a inline list return $this The field object itself Make sure you call this method before checkboxList() or radioList() to have any effect.

bootstrap\ActiveField createLayoutConfig()

createLayoutConfig() protected method protected array createLayoutConfig ( $instanceConfig )$instanceConfig array The configuration passed to this instance's constructor return array The layout specific default configuration for this instance

bootstrap\ActiveField checkboxList()

checkboxList() public method Renders a list of checkboxes. A checkbox list allows multiple selection, like listBox(). As a result, the corresponding submitted value is an array. The selection of the checkbox list is taken from the value of the model attribute. public $this checkboxList ( $items, $options = [] )$items array The data item used to generate the checkboxes. The array values are the labels, while the array keys are the corresponding checkbox values. $options array Options (n

bootstrap\ActiveField label()

label() public method Generates a label tag for $attribute. public $this label ( $label = null, $options = [] )$label null|string|false The label to use. If null, the label will be generated via \yii\bootstrap\Model::getAttributeLabel(). If false, the generated field will not contain the label part. Note that this will NOT be encoded. $options null|array The tag options in terms of name-value pairs. It will be merged with $labelOptions. The options will be rendered as the attribute