Details
-
Task
-
Resolution: Done
-
Neutral
-
None
-
None
-
None
-
None
-
-
Empty show more show less
-
Empty show more show less
-
DevX 8
-
2
Description
Update the 6.2 Blossom-module.adoc page.
Support for UI 6 definitions in Blossom's @DialogFactories and @TabFactories. \o/
The new usage is a little bit different (no fluent builders), but still quite concise.
The key difference is that @TabFactories may now return a List<EditorPropertyDefinition>—simply add your FieldDefinitions to it—instead of injecting the former TabBuilder. Blossom then generates a form-dialog definition, with a tabbed layout. See the sample below:
@TabFactory("Content") public List<EditorPropertyDefinition> contentTab() { TextFieldDefinition heading = new TextFieldDefinition(); heading.setName("heading"); RichTextFieldDefinition body = new RichTextFieldDefinition(); body.setName("body"); body.setRequired(true); return List.of(heading, body); }The update preserves support for multiple tab-factories, @TabOrder, post-processing via @PostCreate (see this other sample), and @DialogFactory methods.
Checklists
Attachments
Issue Links
- causes
-
BLOSSOM-297 DEV-DOC: Provide UI 6 definition examples for the Blossom module page
-
- Open
-
- documents
-
BLOSSOM-290 Enable UI 6 definition usage in dialog/tab factories
-
- Closed
-