public function checkboxList($items, $options = [])
{
$options['tag'] = 'ul';
$inputId = Html::getInputId($this->model, $this->attribute);
$this->selectors = ['input' => "#{$inputId} input"];
$options['class'] = 'da-form-list inline';
$encode = !isset($options['encode']) || $options['encode'];
$itemOptions = isset($options['itemOptions']) ? $options['itemOptions'] : [];
$options['item'] = function ($index, $label, $name, $checked, $value) use($encode, $itemOptions) {
$checkbox = Html::checkbox($name, $checked, array_merge($itemOptions, ['value' => $value, 'label' => $encode ? Html::encode($label) : $label]));
return '<li>' . $checkbox . '</li>';
};
return parent::checkboxList($items, $options);
}