-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add HasRequired to control setRequired in components #386
Comments
Hi @koendecock and thanks for using my components. Indeed, the properties api is missing, as As a side note, I am not a huge fan of exposing the field to the world, as that would allow users to freely modify e.g. the regexp underneath, leading to weird errors. |
Hi @vaadin-miki, great. Adding setRequired will suit my needs. Any idea when the next release will be available? Thanks. |
@koendecock depends on how far I get with #380 this coming week... either way I think a minor release could happen some time next week |
#382 #380 #387 #390 #391 #386 #388 #395 #396 done Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: vaadin-miki <vaadin-miki@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
fyi @koendecock - version 0.14.0 has been just released and should be available from the Directory (both v23 and v14 versions) - please report any issues how it ended up is an interface |
@vaadin-miki Great! Thanks for that. |
I need to put the attribute 'required' on the SuperBigDecimal field. For the other fields in my application I simply do field.getElement().setProperty("required", true); . This gives the fields the appropriate styling a required field needs to have. This doesn't work on SuperBigDecimal because it encapsulates a SuperTextField and the attribute needs to be put on the SuperTextField in order for the required styling to appear. The solution would be to have a getter getField() on AbstractSuperNumberField so that I can do superBigDecimalField.getField().getElement().setProperty("required", true);
The text was updated successfully, but these errors were encountered: