title: How can I change the checkboxlist to look similar to on/off switch?
body: <p>Is there any way to change the checkboxlist widget to look similar to the on/off switch presented in Kartik's Switch Input Widget, but in a group?</p>
  
  <p>I'm using this code:</p>
  
  <pre><code>echo $form-&gt;field($model, 'blocked_list')-&gt;checkboxList($array_list);
  </code></pre>
  
  <p>Which is very simple to use, but produces "simple" list...</p>
  
  <p>I've tried with Karitk's like this:</p>
  
  <pre><code>foreach ($array_list as $category_id=&gt;$category_name) {
      echo '&lt;label class="control-label"&gt;' . $category_name . '&lt;/label&gt;';
      echo SwitchInput::widget([
          'name'=&gt;'blocked_list',
          'value'=&gt;in_array($category_id, $model-&gt;blocked_list),
          'pluginOptions' =&gt; [
              'size' =&gt; 'mini',
          ],
      ]);
  </code></pre>
  
  <p>But it does not link with the model, and the Form looses it format</p>
  
  <p>Any ideas, please?</p>