[CONTEDIT-80] Collapsible field collapsed by default (optional) Created: 03/Apr/17  Updated: 11/Apr/17  Resolved: 11/Apr/17

Status: Closed
Project: Content Editor
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Mariusz Chruscielewski Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
supersession
is superseded by CONTEDIT-74 Adding multiple collapsable meta data... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)

 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.


Generated at Mon Feb 12 00:16:52 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.