widgets\ActiveField __toString()

__toString() public method PHP magic method that returns the string representation of this object. public string __toString ( )return string The string representation of this object.

widgets\ActiveForm $ajaxDataType

$ajaxDataType public property The type of data that you're expecting back from the server. public string $ajaxDataType = 'json'

widgets\ActiveField textInput()

textInput() public method Renders a text input. This method will generate the name and value tag attributes automatically for the model attribute unless they are explicitly specified in $options. public $this textInput ( $options = [] )$options array The tag options in terms of name-value pairs. These will be rendered as the attributes of the resulting tag. The values will be HTML-encoded using yii\helpers\Html::encode(). The following special options are recognized: maxlength: integer|

widgets\ActiveField textarea()

textarea() public method Renders a text area. The model attribute value will be used as the content in the textarea. public $this textarea ( $options = [] )$options array The tag options in terms of name-value pairs. These will be rendered as the attributes of the resulting tag. The values will be HTML-encoded using yii\helpers\Html::encode(). If you set a custom id for the textarea element, you may need to adjust the $selectors accordingly. return $this The field object itself.

widgets\ActiveField widget()

widget() public method Renders a widget as the input of the field. Note that the widget must have both model and attribute properties. They will be initialized with $model and $attribute of this field, respectively. If you want to use a widget that does not have model and attribute properties, please use render() instead. For example to use the yii\widgets\MaskedInput widget to get some date input, you can use the following code, assuming that $form is your yii\widgets\ActiveForm instance:

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

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

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

widgets\ActiveField passwordInput()

passwordInput() public method Renders a password input. This method will generate the name and value tag attributes automatically for the model attribute unless they are explicitly specified in $options. public $this passwordInput ( $options = [] )$options array The tag options in terms of name-value pairs. These will be rendered as the attributes of the resulting tag. The values will be HTML-encoded using yii\helpers\Html::encode(). If you set a custom id for the input element, you may

widgets\ActiveField listBox()

listBox() public method Renders a list box. The selection of the list box is taken from the value of the model attribute. public $this listBox ( $items, $options = [] )$items array The option data items. The array keys are option values, and the array values are the corresponding option labels. The array can also be nested (i.e. some array values are arrays too). For each sub-array, an option group will be generated whose label is the key associated with the sub-array. If you have a list