Table of Contents |
---|
Design
Line layout | Column layout |
List layout | Square layout |
Small Square | Table |
...
Info |
---|
Default Behaviour(s) : #00 : Display modes component is used on two different pages :
#02 : On these pages, 4 of the 6 display modes are displayed by default, among the following options :
#03 : Square Layout is always active by default for All assets and All Videos cursors, and for the board’s page. #04 : For the List layout the metadata displayed by default on each tile are :
#05 : 2 additionnal modes are available, but not displayed by default :
|
...
Activating/deactivating a display mode for a cursor
To complete hide the display mode for a cursor, you just have to change it’s configuration $.dam.explore.layouts.<cursorname>.default-resource-config.hide-layout.json
to true
. Here are some example with the default cursor (“all assets”) and the “all videos” cursor:
Code Block |
---|
src/wedia-plugin-template/res/v0/dam/explore/layouts/all-videos/default-resource-config/hide-layout.json
true |
or
Code Block |
---|
src/wedia-plugin-template/res/v0/dam/explore/layouts/default-cursor-config/default-resource-config/hide-layout.json
true |
and
Code Block |
---|
src/wedia-plugin-template/res/v0/board/boards-view/layout/hide-layout.json
true |
Configuring default display mode for a cursor
Config path | Default value | Description |
---|---|---|
Translation i18n key: | Line layout | tooltip |
Translation i18n key: | Column layout | tooltip |
Translation i18n key: | List layout | tooltip |
Translation i18n key: | Square layout | tooltip |
| [ | Configures “All assets” cursor Each object represents an icon that will be displayed in the selection of layouts. |
| "square" | Configures “All assets” cursor Defines the default layout that will be used. |
| true | Configures “All assets” cursor |
...
By default, hides the label: To show the label, put this value to | ||
| false | Configures “All assets” cursor By default, will show the display mode: If this value is set to |
Configuration for other non-default layouts
Config path | Default value | Description |
---|---|---|
| { "key": "squareSmall", "i18n": "layout.squareSmall", "class": "fal fa-grip-horizontal" } | Small square |