Yii: How to add inline style to select option item?
<p>I have select HTML tag generated by this code:</p>

<pre><code>&lt;?= $form-&gt;field($model, 'something')-&gt;dropDownList(Class::method(), 
  ['prompt' =&gt; Yii::t('app', '--- Choose ---')]) ?&gt;
</code></pre>

<p>I would need to add an HTML attribute (e.g. inline style) to each option tag.</p>

<p>Can you give me a hint, please?</p>