-
Notifications
You must be signed in to change notification settings - Fork 124
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
returnBlankAsNull for AbstractValueWidget #753
Comments
Typical use-case would be non-mandatory inputs/fields with |
This would be acceptable, however note that there are edge cases in classes like |
In fact you will have to make sure all the classes extending |
Which branch should the changes go to please? |
release_2.1 |
…ed `#returnBlankAsNull`, with this attribute set to `true` calling `#getvalue()` returns `null` when the (already implemented) blank-validator recognizes the value blank
In the end it seems |
#753 - MaterialValueBox now has a new attribute called #returnBlankAsNull
Agreed this can be used also not only in MaterialTextBox but also all widget extending ValueBox |
I'm writing now the Documentation on the Latest 2.1 demo snapshot and also A JUnit test for this. |
JUnit Added |
- Added getEmptyPlaceHolder() and added validation checks on removeEmptyPlaceHolder(). - Added testEmptyPlaceHolder test cases.
Hello
I need MaterialTextBox to return null instead of blank value. So I extended it like this:
I have added the new attribute to MaterialTextBox but I believe it should eventually go to gwt.material.design.client.base.AbstractValueWidget.
Would you consider accepting this modification i.e. a pull request?
The text was updated successfully, but these errors were encountered: