You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api/config/js_kanban_cardshape_config.md
+10-9Lines changed: 10 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ cardShape?: {
55
55
},
56
56
{...} // other users data
57
57
],
58
-
maxCount?:boolean|number
58
+
maxCount?:number|false
59
59
},
60
60
priority?: boolean | {
61
61
show?: boolean,
@@ -155,11 +155,10 @@ To configure the card appearance, in the **cardShape** object you can specify th
155
155
-`id`- (required) a user **ID**
156
156
-`label`- (optional) a user name
157
157
-`avatar`- (optional) a path to the user avatar
158
-
-`maxCount`- (optional) a maximum count of users displayed on the card
158
+
-`maxCount`- (optional) a maximum count of users displayed on the card (or ***false***)
159
159
160
-
If you set the `maxCount` property to `true`, you can see only the first assigned user on the card and the number of assigned users near the avatar.
160
+
You can set the `maxCount` property to the number of users to be displayed on the card.
161
161
If you set the `maxCount` property to `false`, you can see all the assigned user on the card.
162
-
You can set the `maxCount` property to the number of users to be displayed on the card.
163
162
164
163
:::info
165
164
The ***users*** field is disabled by default. To enable it, you need to set the `show` parameter to `true` and provide the corresponding users data via the `values`parameter. To assign newusers via the editor, you need to configure the corresponding control via the [`editorShape`](api/config/js_kanban_editorshape_config.md#--parameters-for-combo-select-and-multiselect-types) property. Use the ***select*** type for assigning one or user or the ***multiselect*** type for assigning several users.
@@ -172,7 +171,7 @@ To configure the card appearance, in the **cardShape** object you can specify th
maxCount:3// only 3 users can be displayed on the card
174
+
maxCount:4// only 4 users can be displayed on the card
176
175
}
177
176
}
178
177
~~~
@@ -187,7 +186,6 @@ To configure the card appearance, in the **cardShape** object you can specify th
187
186
-`votes`- (optional) specifies the **votes** functionality
188
187
-`show`- (optional) shows/hides the vote icon on the card and in the editor
189
188
-`clickable`- (optional) - makes the vote icon on the card clickable. If`true`, users can vote for the card using the vote icon on thiscard. Otherwise, users can vote for the card using the vote icon in the editor only
190
-
shows/hides **votes** on cards. If**true**, the corresponding control will be displayed in the editor
191
189
-`css`- a function returns a css class that applies to cards conditionally
192
190
- `headerFields` - (optional) an array of objects with the **custom fields** data. Here you can specify the following parameters:
193
191
- `key` - (required) a key of the custom field. It is used when configuring the Editor via the [editorShape](../js_kanban_editorshape_config) property
Copy file name to clipboardExpand all lines: docs/guides/configuration.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,14 +59,14 @@ The board of Kanban consists of the *cards* distributed into *columns* and *rows
59
59
60
60
- a card cover (*preview image*) via the `cover: boolean` config
61
61
- a card comment(s) via the `comments: boolean` config
62
-
- a card vote(s) via the `votes: { show: boolean, clicable: true }` config
63
-
- a card assignment (users) via the `users: { show: boolean, values: object, maxCount: number }` config
62
+
- a card vote(s) via the `votes: boolean | { show: boolean, clicable: true }` config
63
+
- a card assignment (users) via the `users: boolean | { show: boolean, values: object, maxCount: number | false }` config
64
64
65
65
:::tip
66
66
You can assign one or several users to any card via the corresponding control of the Kanban editor. To configure the control for assigning a single user, use the [**combo** or **select**](#combo-select-and-multiselect-types) types of editor. To assign multiple users, use the [**multiselect**](#combo-select-and-multiselect-types) type.
67
67
:::
68
68
69
-
- a card priority via the `priority: { show: boolean, values: object }` config
69
+
- a card priority via the `priority: boolean | { show: boolean, values: object }` config
70
70
71
71
:::tip
72
72
You can manage the **priority** of any card via the corresponding control of the Kanban editor. If you activate **priority**, the corresponding control will be displayed in the editor automatically. To configure this control, you can use the [**combo** or **select**](#combo-select-and-multiselect-types) types only.
Copy file name to clipboardExpand all lines: docs/news/whats_new.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,11 +14,11 @@ Released on Month Day, 2024
14
14
15
15
### New functionality
16
16
17
-
-An ability to display the editor as a modal window via the [`editor.placement`](../../api/config/js_kanban_editor_config) property
18
-
-An ability to enable voting for a card (using the vote icon on the card) via the [`cardShape.votes.clicable`](../../api/config/js_kanban_columnshape_config) property
19
-
-An ability to specify a custom template for a search result via the [`items.searchResult`](../../api/config/toolbar_items_config) property of the Toolbar **search** control
20
-
-An ability to specify a max count of assigned users displayed on a card via the [`cardShape.users.maxCount`](../../api/config/js_kanban_columnshape_config) property
21
-
-An ability to specify custom templates for column header in expanded and collapsed states via the [`columnShape`](../../api/config/js_kanban_columnshape_config) property
17
+
-The ability to change how many assigned users are displayed on a card via the [`cardShape.users.maxCount`](../../api/config/js_kanban_columnshape_config) property
18
+
-The ability to change the content of column headers via the [`items.searchResult`](../../api/config/toolbar_items_config) property of the Toolbar **search** control
19
+
-The ability to change the view and content of search results via the [`columnShape`](../../api/config/js_kanban_columnshape_config) property
20
+
-The ability to display the editor as a modal window via the [`editor.placement`](../../api/config/js_kanban_editor_config) property
21
+
-The ability to enable voting for a card (using the vote icon on the card) via the [`cardShape.votes.clicable`](../../api/config/js_kanban_columnshape_config) property
22
22
23
23
### Updates
24
24
@@ -29,9 +29,13 @@ Released on Month Day, 2024
29
29
- The [`editor`](../../api/config/js_kanban_editor_config) property is extended by the ***placement*** parameter
30
30
- The [`items`](../../api/config/toolbar_items_config) property of the Toolbar **search** control is extended by the ***searchResult*** parameter
31
31
32
+
-#### Events
33
+
34
+
- The [`set-edit`](../../api/events/js_kanban_setedit_event) event is extended by the ***eventSource*** parameter
0 commit comments