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
I would like to be able add more classes to the default 'text form-control'.
Now the input renders with these default classes when i don't specify them in constructor.
... "widget" => new TextInput() ...
When any class is specified in constructor option attr these default do not render
... "widget" => new TextInput(array( "attrs" => array("class" => "any-class"), )) ...
This renders input with class="any-class" but it should preserve the default classes and render the input with class="any-class text form-control"
class="any-class"
class="any-class text form-control"
The text was updated successfully, but these errors were encountered:
I don't think that preserve default classes is a good idea. There must be a way to set completely different classes. So you should use
... "widget" => new TextInput(array( "attrs" => array("class" => "any-class text form-control"), )) ...
Does it sound good to you?
Sorry, something went wrong.
No branches or pull requests
I would like to be able add more classes to the default 'text form-control'.
Now the input renders with these default classes when i don't specify them in constructor.
When any class is specified in constructor option attr these default do not render
This renders input with
class="any-class"
but it should preserve the default classes and render the input withclass="any-class text form-control"
The text was updated successfully, but these errors were encountered: