Custom List

Efficiently display a table with the selected columns to be displayed.

Props

JSON value string | !required
Use a JSON object that contains your list using this format:

[{
	"title":"Monday",
  "subtitle":"Morning",
  "avatarInitials":"MM",
  "value":"Go for it now",
  "moreOptions":[{
    "label":"Option1"}],
  	"date":"20/09/2024"
}]

By default, the list will try to use the values of the JSON value items: title, subtitle, avatarInitials, value, moreOptions, label, date. These properties may be replaced using JSON mapping.


JSON mapping table
The properties on JSON value may be replaced using JSON mapping.

NameTypeDescription
Custom namestringThe value that you want to replace. E.g.: if your endpoint returns txTitle and you want to add it on the row's title, you should type here “txTitle”
Real namestringThe name of the text that’ll be replaced on the row. E.g.: to replace "title" in the row, select it from the dropdown menu. The value you enter in Custom name will then be applied as the new "title"

Status mapping table
Map the variables with the expected chip style.

NameTypeDescription
Status valuestringThe value that the chip will store.
LabelstringSelect an icon to be added to the item. This will be a fallback if the image is not found and no initials have been added.
Status variantstringSelect the size of the avatar.

Example:

LabelStatus valueStatus variant
My Chip Value LabelChipValuesuccess


More options mapping table
The options listed in the dropdown menu.

NameTypeDescription
Custom namestringHow it will be rendered in the UI
Real namestringThe property from the JSON

Example:

Custom nameReal name
label.test.nameLabel


Group separator string | !required
Used to group elements, pulls the value of one of the items in your JSON.