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

Collapsible field collapsed by default (optional)

XMLWordPrintable

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

      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.

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Task DoD