title: yii2 checkboxList custom class
body: <p>Here is the sample code from Yii2 checkboxList, I want to add custom class for each Item in checkboxList but I don't know how and where can I add that!<br>
  Could you please help me please ..</p>
  
  <pre><code>$list = [0 =&gt; 'PHP', 1 =&gt; 'MySQL', 2 =&gt; 'Javascript'];
  $list2 = [0,2];
  
  echo Html::checkboxList('CuisineId',$list2,$list,array('class' =&gt; 'test' ));
  </code></pre>
  
  <p>Thanks in advance.</p>