|
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. |
|