Uploaded image for project: 'Content Editor'
  1. Content Editor
  2. CONTEDIT-80

Collapsible field collapsed by default (optional)

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Duplicate
    • Neutral
    • None
    • None
    • None

    Description

      Hi, it would be nice to add possibility for collapsible field to be collapsed by default,

      I did it already in my code (overriden your classes),

      I added boolean collapsed = false; in FieldDefinition and then I passed that value to CollapsibleCompositeField class and in initContent() I did:

      if (collapsed)

      { content.setVisible(false); layout.setStyleName("collapsed", true); }

      It's very simple fix, but adds important functionality - some data can be hidden by default, if it's not relevant for most of editors.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                mchruscielewski Mariusz Chruscielewski
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD