Yii2 dropdown list : add html markups like data-food="..." to my options
<p>I'm building an app using Yii2.  I am generating dropdown lists using the Html Helper provided by Yii2 :</p>

<pre><code>&lt;?= Html::dropDownList('food', $food_id, $foodList, ['id'=&gt;'food-select']); ?&gt;
</code></pre>

<p>where $food_id is the default selected option and $foodList is an array containing key-value pairs that represent the options value and text.</p>

<p>It works well, but I'd need to add a html-markup (data-food="...") to my options.  Something like this:</p>

<pre><code>&lt;select id='food-select'&gt;
    &lt;option id="1" data-food="apple-info"&gt;Apple&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>Is this possible using the Html::dropDownList() method?  Is there anyway to do it?</p>