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

Details

    • Task
    • Resolution: Done
    • Neutral
    • None
    • None
    • None
    • None
    • 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

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoR