Uploaded image for project: 'Blossom'
  1. Blossom
  2. BLOSSOM-296

DOC: Mgnl 6.2.18 - Support for UI 6 definitions in Blossom's @DialogFactories and @TabFactories

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Neutral Neutral
    • None
    • None
    • None
    • None
    • DevX 8
    • 2

      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.

       

        Acceptance criteria

              mdrapela Martin Drápela
              mdrapela Martin Drápela
              DeveloperX
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoR