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
This issue has originally been reported by @klevron at yiisoft/yii2#10103. Moved here by @cebe.
Actually if I want to display a label in an inline form, I have to do this :
<?php $form = ActiveForm::begin(['layout' => 'inline']); ?> <?= $form->field($model, 'field')->label(null, ['class' => '']) ?> <?php ActiveForm::end(); ?>
https://github.com/yiisoft/yii2-bootstrap/blob/2.0.5/ActiveField.php#L379
There should be a proper way to do this (same for enableError), no ?
enableError
The text was updated successfully, but these errors were encountered:
To enable this for all labels I use it this way:
<?php $form = ActiveForm::begin([ 'layout' => 'inline', 'fieldConfig' => [ 'labelOptions' => ['class' => ''], 'enableError' => true, ] ]); ?>
could be added as an option though.
Sorry, something went wrong.
@cebe Is that implemented? If not, is there any existing solution to do that?
@bologer what exactly? there is no option to enable it yet, you have to use the code I gave above for now.
No branches or pull requests
This issue has originally been reported by @klevron at yiisoft/yii2#10103.
Moved here by @cebe.
Actually if I want to display a label in an inline form, I have to do this :
https://github.com/yiisoft/yii2-bootstrap/blob/2.0.5/ActiveField.php#L379
There should be a proper way to do this (same for
enableError
), no ?The text was updated successfully, but these errors were encountered: