categories

Type: array[object]

The array of categories that you pass in to categories replaces the list of categories that were set through the designer.

This is mostly useful in combination with the objectCategories parameter.

categories: [
{key: 'red', color: 'red', label: 'Category 1', accessible: true},
{key: 'blue', color: 'blue', label: 'Category 2'}
]
  • key: the category key. Required.
  • color: the category color. Required.
  • label: the category label. Optional. If not specified, only pricing information is shown in the legend and in the tooltips.
  • accessible: whether this is a wheelchair-accessible category. Optional.