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 (name => config) for the checkbox list. For the list of available options please refer to the $options parameter of yii\helpers\Html::activeCheckboxList().

return $this

The field object itself.

doc_Yii
2016-10-30 16:53:00
Comments
Leave a Comment

Please login to continue.