protected function renderCheckboxList($name, $value, $options)
    {
        $options['tabindex'] = self::TABINDEX;

        if (!array_key_exists('unselect', $options)) {
            $options['unselect'] = '';
        }

        $options['item'] = function ($index, $label, $name, $checked, $value) use ($options) {
            $content = Html::checkbox($name, $checked, [
                'label'     => $label,
                'value'     => $value,
                'data-id'   => ArrayHelper::getValue($options, 'id'),
                'tabindex'  => self::TABINDEX
            ]);

            return Html::tag('div', $content, ['class' => 'checkbox']);
        };

        $input = Html::checkboxList($name, $value, $this->prepareItems($this->items), $options);

        return Html::tag('div', $input, ['class' => 'checkbox-list']);
    }
protected function renderCheckboxList($name, $value, $options)
    {
        $options['tabindex'] = self::TABINDEX;

        if (!array_key_exists('unselect', $options)) {
            $options['unselect'] = '';
        }

        $options['item'] = function ($index, $label, $name, $checked, $value) use ($options) {
            $content = Html::checkbox($name, $checked, [
                'label'     => $label,
                'value'     => $value,
                'data-id'   => ArrayHelper::getValue($options, 'id'),
                'tabindex'  => self::TABINDEX
            ]);

            return Html::tag('div', $content, ['class' => 'checkbox']);
        };

        $input = Html::checkboxList($name, $value, $this->prepareItems($this->items), $options);

        return Html::tag('div', $input, ['class' => 'checkbox-list']);
    }
protected function renderCheckboxList ( $ name , $ value , $ options ) { $ options [ 'tabindex' ] = self :: TABINDEX ; if ( ! array_key_exists ( 'unselect' , $ options ) ) { $ options [ 'unselect' ] = '' ; } $ options [ 'item' ] = function ( $ index , $ label , $ name , $ checked , $ value ) use ( $ options ) { $ content = Html :: checkbox ( $ name , $ checked , [ 'label' => $ label , 'value' => $ value , 'data-id' => ArrayHelper :: getValue ( $ options , 'id' ) , 'tabindex' => self :: TABINDEX ] ) ; return Html :: tag ( 'div' , $ content , [ 'class' => 'checkbox' ] ) ; } ; $ input = Html :: checkboxList ( $ name , $ value , $ this -> prepareItems ( $ this -> items ) , $ options ) ; return Html :: tag ( 'div' , $ input , [ 'class' => 'checkbox-list' ] ) ; }
Renders checkbox list.

@param string    $name the name of input
@param mixed     $value the value of input
@param array     $options the HTMl options of input
@return string
Renders checkbox list .