-
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
Add Color Changeable Graphic To Denote a required field #35
Comments
I am not sure I understand your requirement correctly. This can easily be done, like this:
Note that required may use text.isBlank() instead of isEmpty if you want to disallow all-whitespace input. And depending on your type of Control you may need to implement things differently (e.g. a ComboBox has a valueProperty, not a textProperty). |
I was thinking in the terms of Controls FX where if you set the required flag to true there is a little red caret in the top right corner of the text box. I hadn't found a way to change the caret color or caret icon type. This caret stays there indefinitely and then the little circle red x icon is displayed in the bottom right corner when the validation fails. I was wondering if ValidatorFX allowed the same and also allowed for changing of the icon/color. |
A required field indicator like this would be nice addition. +1. |
This can already be done by providing your own default decoration factory: |
TODO: I should write about the DefaultDecoration in the README.md ... |
Allow someone to set a field as required which shows some icon graphic that they can change the color of.
The text was updated successfully, but these errors were encountered: