Tuning data in Flexmonster
This guide describes how you can adjust your data presentation in Flexmonster. For now, it is possible to configure field captions that are displayed everywhere in Flexmonster UI.
Override field captions
By default, a caption is the same as the field’s unique name. You can specify a custom caption for the field using the mapping in your code or the embedded JSON or CSV metadata.
Using mapping
Specify a custom caption for the field in the mapping.<field_name>.caption property:
dataSource: {
type: "json",
data: [
["price", "item", "order_date"],
[100, "Headphones", "2025-04-12"]
],
mapping: {
"price": {
caption: "Price"
},
"item": {
caption: "Item"
},
"order_date": {
caption: "Order Date"
}
}
}
The specified captions will now be displayed everywhere in the component’s UI.
Using the metadata
The specified captions will now be displayed everywhere in the component’s UI.
Note Captions set in the mapping override captions from the metadata.