Customizing DatafariUI - MappingValues (optional)
Valid from Datafari 5.1 (UI 1.0.0-beta-0.6.0)
From ui-config.json
file, you can customize labels from results list for each FieldFacet
or Field tab
. This field is a map key/value to rename a specific value in a Facet list.
Example:
"mappingValues": {
"pdf": "Fichier PDF",
"doc": "Fichier Doc",
"html": "Fichier Web"
}
Will change the value of the specified extensions like this:
Key value is case sensitive, the label from label have to match exactly to rename the label (i.e. html
is different of HTML
)
The mappingValues block is global, it does not belong to a facet block, so it must be declared at the same level than the queryParams block or the hotkeys block
, multiple selections available,