Collapsible Attributes Component
Changed on:
4 July 2024
Overview
Collapsible Entity Attributes is a component that can be used to improve the user experience when interacting with a lot of attributes. It has the ability to:
- Display these attributes on one line separated by commas
- Display these attributes line by line.
- Collapse and expand based on the number of characters (for one-line)
- Collapse and expand based on the number of lines (for line-by-line).
Plugin Name | Core |
---|
The standard library of mystique components.
v1.0.0
Initial changelog entry.
Alias
fc.mystique.collapsible.attributes
Detailed technical description
Usage
The data must start at an array of attributes or a connection of attributes. To enable this, use the
`dataSource`
`dataSource`
`node.product.attributes`
Properties
Name | Type | Required | Default | Description |
|
| No |
|
|
|
| Yes |
| |
|
| No |
| By default, the component shows each attribute as “Name: value”. To hide the name, set this property equal to
|
|
| No | An optional array specifying attributes to hide. The values should be the attribute name. |
Configuration example
1 {
2 "label": "i18n:fc.sf.ui.returns.orders.createReturnOrder.list.column.description.label",
3 "type": "component",
4 "options": {
5 "component": "fc.mystique.collapsible.attributes",
6 "dataSource": "node.product.attributes",
7 "props": {
8 "exclude": [
9 "imageUrl",
10 "imageUrlRef"
11 ],
12 "collapseOn": "",
13 "collapseLimit": 10,
14 "hideKeys": true
15 }
16 }
17 }
Language: json
Version History
v23.8.1
n/a
Recommended Placement
List