Enhanced CRUD offers read only mode, canceling save and access to Editor buttons
Enhanced CRUD is an improved version of the Vaadin CRUD component. The most notable differences are
Features
-
Toolbar footer can be hidden
-
There is read only mode, where Editor dialog has only the close button and data cannot be edited
-
A new PreSaveEvent is triggered before bean is committed, so that fully customized saving logic is possible to be added.
-
Cancel save. You can do additional validation in save listener and cancel if needed. Then edits are reverted.
-
Access to Editor dialog buttons. Button captions can be changed, buttons can be hidden.
-
Possible to disable confirm dialog on cancel actions
Fixes
-
event.getItem() returns new item if opened with new item, https://github.com/vaadin/vaadin-crud-flow/issues/204
-
Possible NPE: "Cannot provide an id for null item.", https://github.com/vaadin/vaadin-crud-flow/pull/216
This component requires Vaadin 14+ and npm mode. Compatibility mode not supported.
Note: This component uses the same web component names as original CRUD, so you can't use them in the same project. If you use vaadin-bom, use vaadin-core dependency instead of vaadin and add other Pro add-on's individually.
Vaadin Pro
This component is available in the Vaadin Pro subscription. It is still open source, but you need to have a valid CVAL license in order to use it. Read more at: Pricing
Install
Version 1.2.0
- Added option to disable the confirm dialog on cancel actions