/** * 渲染checkbox * @param $value 元素值 * @return string dom元素 */ protected function renderContent($value) { return Html::checkbox($this->name . '[' . $value . ']', in_array($value, $this->values), ['class' => 'icheck', 'data-checkbox' => 'icheckbox_' . $this->style . '-' . $this->color, 'value' => $value]); }