We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In my container I set this definition:
'definitions' => [ 'radioOptions' => [ 'class' => ['widget' => 'form-check-input'], 'labelOptions' => [ 'class' => ['widget' => 'form-check-label'] ], ], 'radioTemplate' => "<div class=\"form-check\">\n{input}\n{label}\n{error}\n{hint}\n</div>", ]
In my view:
$activeForm->field($someForm, 'someField')->radioList($someValues);
<div role="radiogroup"> <div class="form-check"> <input type="radio" id="i0" class="form-check-input" name="SomeForm[someField]" value="1"> <label class="form-check-label" for="i0">Label 1</label> </div> <div class="form-check"> <input type="radio" id="i1" class="form-check-input" name="SomeForm[someField]" value="2"> <label class="form-check-label" for="i1">Label 2</label> </div> ... </div>
<div role="radiogroup"> <div class="custom-control custom-radio"> <input type="radio" id="i0" class="form-check-input" name="SomeForm[someField]" value="1"> <label class="form-check-label" for="i0">Label 1</label> </div> <div class="custom-control custom-radio"> <input type="radio" id="i1" class="form-check-input" name="SomeForm[someField]" value="2"> <label class="form-check-label" for="i1">Label 2</label> </div> ... </div>
Same thing with checkboxList. Yes, I have found in code magic 'wrapperOptions', on vendor/yiisoft/yii2-bootstrap4/src/ActiveField.php:381 but:
'wrapperOptions'
vendor/yiisoft/yii2-bootstrap4/src/ActiveField.php:381
$radioOptions
Maybe it's not bug, but doc problem.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What steps will reproduce the problem?
In my container I set this definition:
In my view:
What's expected?
What do you get instead?
Additional info
Same thing with checkboxList. Yes, I have found in code magic
'wrapperOptions'
, onvendor/yiisoft/yii2-bootstrap4/src/ActiveField.php:381
but:$radioOptions
.Maybe it's not bug, but doc problem.
The text was updated successfully, but these errors were encountered: