[MGNLUI-3401] Provide a convenient BooleanPropertyColumnDefinition Created: 17/Apr/15  Updated: 16/Mar/16  Resolved: 17/Apr/15

Status: Closed
Project: Magnolia UI
Component/s: tree/list, workbench
Affects Version/s: None
Fix Version/s: 5.4

Type: New Feature Priority: Neutral
Reporter: Mikaël Geljić Assignee: Mikaël Geljić
Resolution: Fixed Votes: 0
Labels: list
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File BooleanPropertyColumnDefinition.png    
Issue Links:
Relates
relates to MGNLUI-3813 Configure alignment and style names f... Closed
relation
is related to MGNLRES-140 Implement the new Resources app Closed
Template:
Acceptance criteria:
Empty
Release notes required:
Yes

 Description   

I recently came up with a convenient multi-purpose BooleanPropertyColumnDefinition, along with its associated formatter.

Similarly as a regular PropertyColumnDefinition it gets bound to a vaadin Item's property (not necessarily a JCR adapter), and allows to set icon and/or label for both true and false values. They can be left blank as well.

displayMode optional, default is ICON_ONLY
Defines the display mode to represent the value of the property. The value is one of the following: ICON_ONLY, TEXT_ONLY or ICON_AND_TEXT.
falseIcon optional
Defines the icon to display when the value of the property is false.
trueIcon optional, default is "icon-tick"
Defines the icon to display when the value of the property is true.
falseLabel optional
Defines the text to display when the value of the property is false.
trueLabel optional
Defines the text to display when the value of the property is true.


 Comments   
Comment by Mikaël Geljić [ 08/May/15 ]

Need missing test for the ColumnFormatter, spoiled coverage so far.

Generated at Mon Feb 12 09:06:14 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.