activeRadioList set options for container tag


In activeRadioList exists the options: tag, unselect, encode, separator, itemOptions and item. But, I’d like to do this:

<?= $form->field($model, 'example')->radioList(['0' => 'option1', '1' => 'option2'], [

    'containerOptions' => ['class' => 'radio disabled'], // sugestion

    'itemOptions' => ['disabled' => 'disabled'],

]) ?>


<div value="0" id="model-example" class="radio disabled">

  <label><input type="radio" disabled="disabled" checked="" value="0" name="Model[example]"> option1</label>

  <label><input type="radio" disabled="disabled" value="1" name="Model[example]"> option2</label>


I know it’s possible to do it another way. But I leave my suggestion to be analyzed.