Property category specification
TypeScript type: PropertyCategorySpecification.
Content modifier for defining custom property categories. Custom categories are not present in the result unless they contain at least one property. One way to assign a property to the category is by using property overrides.
See property categorization page for more details.
Attributes
Name | Required? | Type | Default |
---|---|---|---|
id |
Yes | string |
|
parentId |
No | string | CategoryIdentifier |
|
label |
Yes | string |
|
description |
No | string |
"" |
priority |
No | number |
1000 |
autoExpand |
No | boolean |
false |
renderer |
No | RendererSpecification |
undefined |
Attribute: id
Category identifier used to reference the category definition from property overrides or other category definitions. The identifier has to be unique within the list of category definitions where this specification is used.
Type | string |
Is Required | Yes |
Attribute: parentId
Identifier of a parent category. When specifying the parent category by ID, it has to be available in the scope of this category definition.
Type | string | CategoryIdentifier |
Is Required | No |
Default Value | No parent |
Attribute: label
Display label of the category. May be localized.
Type | string |
Is Required | Yes |
Attribute: description
Extensive description of the category. The description is assigned to the category object that's set on content fields and it's up to UI component to decide how the description is displayed.
Type | string |
Is Required | No |
Default Value | "" |
Attribute: priority
Assign a custom CategoryDescription.priority to the category. It's up to the UI component to make sure that priority is respected - categories with higher priority should appear before or above categories with lower priority.
Type | number |
Is Required | No |
Default Value | 1000 |
Attribute: autoExpand
Controls the value of CategoryDescription.expand which tells the UI component displaying the category to auto-expand the category.
Type | boolean |
Is Required | No |
Default Value | false |
autoExpand: false |
autoExpand: true |
---|---|
![]() |
![]() |
Attribute: renderer
Custom category renderer specification that allows assigning a custom category renderer to be used in UI. This specification is used to set up CategoryDescription.renderer for this category and it's up to the UI component to make sure appropriate renderer is used to render the category.
See Custom property category renderers page for information on how custom categories are handled in our UI components.
Type | RendererSpecification |
Is Required | No |
Default Value | undefined |
Last Updated: 24 January, 2023