Hello Miki,
Thank you for those powerful Widgets!
We use them in our Project, but we have the issue that we need an empty default value instead of 0 in the number fields. Is there a possibility to do so?
Thanks,
Tom
Hello Miki,
Thank you for those powerful Widgets!
We use them in our Project, but we have the issue that we need an empty default value instead of 0 in the number fields. Is there a possibility to do so?
Thanks,
Tom
Hi and thanks for your kind words!
If you construct a number field with null
as default value, it should show an empty string instead of 0 (this is only possible through constructor argument). This feature (https://github.com/vaadin-miki/super-fields/issues/189) has been added in version 0.7.3. It is showcased in the latest demo (https://github.com/vaadin-miki/super-fields/blob/dbd540d118bac338a25949fe9505c0ee7afce6ea/demo-v14/src/main/java/org/vaadin/miki/DemoComponentFactory.java#L106-L109).
Hopefully this helps :)