widgets\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

widgets\ActiveField checkbox()

checkbox() public method Renders a checkbox. This method will generate the checked tag attribute according to the model attribute value. public $this checkbox ( $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 ra

widgets\ActiveField begin()

begin() public method Renders the opening tag of the field container. public string begin ( )return string The rendering result.

widgets\ActiveField adjustLabelFor()

adjustLabelFor() protected method Adjusts the for attribute for the label based on the input options. protected void adjustLabelFor ( $options )$options array The input options.

widgets\ActiveField $validationDelay

$validationDelay public property Number of milliseconds that the validation should be delayed when the user types in the field and $validateOnType is set true. If not set, it will take the value of yii\widgets\ActiveForm::$validationDelay. public integer $validationDelay = null

widgets\ActiveField $validateOnType

$validateOnType public property Whether to perform validation while the user is typing in the input field. If not set, it will take the value of yii\widgets\ActiveForm::$validateOnType. See also $validationDelay. public boolean $validateOnType = null

widgets\ActiveField $validateOnChange

$validateOnChange public property Whether to perform validation when the value of the input field is changed. If not set, it will take the value of yii\widgets\ActiveForm::$validateOnChange. public boolean $validateOnChange = null

widgets\ActiveField $validateOnBlur

$validateOnBlur public property Whether to perform validation when the input field loses focus. If not set, it will take the value of yii\widgets\ActiveForm::$validateOnBlur. public boolean $validateOnBlur = null

widgets\ActiveField $template

$template public property The template that is used to arrange the label, the input field, the error message and the hint text. The following tokens will be replaced when render() is called: {label}, {input}, {error} and {hint}. public string $template = "{label}\n{input}\n{hint}\n{error}"

widgets\ActiveField $selectors

$selectors public property The jQuery selectors for selecting the container, input and error tags. The array keys should be container, input, and/or error, and the array values are the corresponding selectors. For example, ['input' => '#my-input']. The container selector is used under the context of the form, while the input and the error selectors are used under the context of the container. You normally do not need to set this property as the default selectors should work well for most