Skip to content

Commit 2740876

Browse files
[update] Add minor changes after review
1 parent 242e0bc commit 2740876

File tree

6 files changed

+17
-10
lines changed

6 files changed

+17
-10
lines changed

docs/api/config/js_kanban_cardshape_config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ new kanban.Kanban("#root", {
317317
**Related articles:** [Configuration](../../../guides/configuration#cards)
318318

319319
**Related samples:**
320-
321320
- [Kanban. Swimlanes, comments, votes](https://snippet.dhtmlx.com/5hcx01h4?tag=kanban)
322321
- [Kanban. Highlighting outdated and active tasks](https://snippet.dhtmlx.com/7fvc3rr1?tag=kanban)
323322
- [Kanban. Styling cards](https://snippet.dhtmlx.com/qu6rpktk?tag=kanban)
323+
- [Kanban. Unlimited user assignments per task](https://snippet.dhtmlx.com/w205dvzg?tag=kanban)

docs/api/config/js_kanban_columnshape_config.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,3 +201,4 @@ new kanban.Kanban("#root", {
201201
**Related samples:**
202202
- [Kanban. Changing color of column via custom menu](https://snippet.dhtmlx.com/fnlvd2g5?tag=kanban)
203203
- [Kanban. Fixed headers, lazy rendering and column scroll](https://snippet.dhtmlx.com/xez9ghqq?tag=kanban)
204+
- [Kanban. Template for column headers](https://snippet.dhtmlx.com/gq2saz9c?tag=kanban)

docs/api/config/js_kanban_editor_config.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,5 @@ new kanban.Kanban("#root", {
5454
~~~
5555

5656
**Change log:** The `placement` parameter was added in v1.6
57+
58+
**Related samples:** [Kanban. Opening the editor in a modal window](https://snippet.dhtmlx.com/vt6pe7qz?tag=kanban)

docs/api/config/toolbar_items_config.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,4 +187,6 @@ new kanban.Toolbar("#toolbar", {
187187

188188
**Related articles:** [Configuration](../../../guides/configuration#toolbar) and [Customization](../../../guides/customization#custom-toolbar)
189189

190-
**Related sample:** [Kanban. Custom toolbar](https://snippet.dhtmlx.com/s5r5h4ju?tag=kanban)
190+
**Related sample:**
191+
- [Kanban. Custom toolbar](https://snippet.dhtmlx.com/s5r5h4ju?tag=kanban)
192+
- [Kanban. Customization of suggestions in search results](https://snippet.dhtmlx.com/2uo2f5mf?tag=kanban)

docs/api/events/js_kanban_setedit_event.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,13 @@ const board = new kanban.Kanban("#root", {
4040
cards
4141
});
4242
// prevent editing when a user clicks the card once
43-
board.api.intercept("set-edit", ({ eventSource }) => {
44-
return eventSource != "select-card";
43+
board.api.intercept("set-edit", (ev) => {
44+
return ev?.eventSource != "select-card";
4545
});
4646
~~~
4747

4848
**Change log:**
4949
- The event was added in v1.2
5050
- The ***eventSource*** parameter was added in v1.6
51+
52+
**Related samples:** [Kanban. Open the editor by double-clicking on the task](https://snippet.dhtmlx.com/zh4d9pdb?tag=kanban)

docs/news/whats_new.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ Released on Month Day, 2024
1414

1515
### New functionality
1616

17-
- The ability to change how many assigned users are displayed on a card via the [`cardShape.users.maxCount`](../../api/config/js_kanban_cardshape_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_cardshape_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_cardshape_config) property (see the [**example**](https://snippet.dhtmlx.com/w205dvzg?tag=kanban))
18+
- The ability to change the content of column headers via the [`columnShape`](../../api/config/js_kanban_columnshape_config) property (see the [**example**](https://snippet.dhtmlx.com/gq2saz9c?tag=kanban))
19+
- The ability to change the view and content of search results via the [`items.searchResult`](../../api/config/toolbar_items_config) property of the Toolbar **search** control (see the [**example**](https://snippet.dhtmlx.com/2uo2f5mf?tag=kanban))
20+
- The ability to display the editor as a modal window via the [`editor.placement`](../../api/config/js_kanban_editor_config) property (see the [**example**](https://snippet.dhtmlx.com/vt6pe7qz?tag=kanban))
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_cardshape_config) property (see the [**example**](https://snippet.dhtmlx.com/en76xvi4?tag=kanban))
2222
- The ability to apply a theme via the [`setTheme()`](../../api/methods/js_kanban_settheme_method) method
2323

2424
### Updates
@@ -32,7 +32,7 @@ Released on Month Day, 2024
3232

3333
- #### Events
3434

35-
- The [`set-edit`](../../api/events/js_kanban_setedit_event) event is extended by the ***eventSource*** parameter
35+
- The [`set-edit`](../../api/events/js_kanban_setedit_event) event is extended by the ***eventSource*** parameter (see the [**example**](https://snippet.dhtmlx.com/zh4d9pdb?tag=kanban))
3636

3737
- #### Methods
3838

0 commit comments

Comments
 (0)