Related Users Configuration
Used to configure the user list related to the document. This configuration is commonly used together with mentioning others, multi-user collaborative editing, document comments, custom extensions, or business nodes.
Default Configuration
{
users: [],
}Configuration Item
users
Description: related user list.
Type: Array
Default: []
Each item in the list typically includes:
id: user IDlabel: user display nameavatar: avatar URLcolor: user color, used to distinguish users quicklyname/nickname: business-defined name fields that can be extended as needed
Usage Example
const options = {
users: [
{ id: 'u_10001', label: 'Bob' },
{ id: 'u_10002', label: 'Alice' },
{ id: 'u_10003', label: 'Charlie' },
],
}Recommendations
- If your business uses mentions, user picking, custom approval nodes, or similar capabilities, it is recommended to pass the user list in advance.
- If the number of users is large, it is recommended to handle search, pagination, or lazy loading at the business layer instead of passing the entire dataset at once.