-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
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
[Feature Request] Adjust input following rules #65
Comments
I've made a quick draft for that. |
Thank you! |
Could you please make a test case and show what isn't working? |
Not quickly, but you can use the yii-demo as a reference. For example on the contact page:
Required is missing from the input. |
To enable html attributes you should wrap rules with html options provider decorators. |
Ah alrighty. Not very intuitive to be honest. But if it works... cool! |
Need more research:
|
@Mister-42 extra enhancements could be added separately. Regex is already handled. The rest looks interesting. |
What steps will reproduce the problem?
Below is just 1 example, there are probably more validators that can be integrated into the fields.
What is the expected result?
<input type="number" id="form-amount" class="form-control" name="Form[amount]" max="250" min="1" placeholder="Amount">
What do you get instead?
<input type="number" id="form-amount" class="form-control" name="Form[amount]" placeholder="Amount">
Additional info
The text was updated successfully, but these errors were encountered: