[ADF-4341] Customise the property title into the InfoDrawer from configuration (#5556)

* [ADF-4341] Customise the property title into the InfoDrawer from configuration

* * docs added

* * removed unnecessary logic and docs updated
This commit is contained in:
dhrn
2020-03-25 16:35:11 +05:30
committed by GitHub
parent 772188c13d
commit c684d5f50c
7 changed files with 126 additions and 8 deletions

View File

@@ -212,6 +212,42 @@ A more complex config is shown in the example below:
}
```
#### Custom property title example
In layout oriented configuration, the metadata property title can be overridden from ADF as below.
```json
{
"name": "exif:pixelYDimension", // your desired property name
"title": "Custom YDimension Name" // your desired property title
}
```
```json
"content-metadata": {
"presets": {
"kittens": [
{
"title": "GROUP-TITLE1-TRANSLATION-KEY",
"items": [
{
"aspect": "exif:exif",
"properties": [
"exif:pixelXDimension",
{
"title": "Custom YDimension Name",
"name": "exif:pixelYDimension"
}
]
}
]
}
```
Note: The desired property title should be valid. otherwise it will take default value.
![custom-ptoperty-title](../../docassets/images/content-meta-data-custom-ptoperty-title.png)
The result of this config would be two accordion groups with the following properties:
| GROUP-TITLE1-TRANSLATION-KEY |