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/toolbar_items_config.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ items?: [
30
30
type:"sort",
31
31
options?: [
32
32
{
33
-
label: string,
33
+
text: string,
34
34
by?: string, // by?: ((card: object) => any),
35
35
dir?:"asc"|"desc"
36
36
}, {...}
@@ -57,7 +57,7 @@ In the **items** array you can specify the following parameters:
57
57
-`type` - (required) a type of control (*"search"*)
58
58
-`options` - (optional) an array of objects, that define the search parameters. For each object (*search option*) you can specify the following parameters:
59
59
- `id` - (required) a key of card field, by which the cards will be searched
60
-
- `label` - (required) a name of option, used in a dropdawn list of the searchbar selector
60
+
- `label` - (required) a name of option, used in a dropdown list of the searchbar selector
61
61
- `searchRule` (optional) - a custom function that allows defining search rules. It takes the following arguments:
62
62
- ***card*** - an object of the card data
63
63
- ***value*** - a searched value, specified in the searchbar
@@ -98,7 +98,7 @@ items: [
98
98
99
99
-`type`- (required) a type ofcontrol (*"sort"*)
100
100
-`options`- (optional) an array of objects, that define the sort parameters. For each object (*sort option*) you can specify the following parameters:
101
-
-`label`- (required) a name of option, used in a dropdawn list of the sort selector
101
+
-`text`- (required) a name of option, used in a dropdown list of the sort selector
102
102
-`by`- (optional) a key of card field, by which the cards will be sorted. This parameter can be set to the *string* or *function* value. The function needs to return the card field for sorting
103
103
- `dir` - (optional) an order of sorting. The possible values are *"asc"* and *"desc"*
104
104
@@ -113,12 +113,12 @@ items: [
113
113
type:"sort",
114
114
options: [
115
115
{
116
-
label:"Sort by label",
116
+
text:"Sort by label",
117
117
by:"label",
118
118
dir:"asc"
119
119
},
120
120
{
121
-
label:"Sort by description",
121
+
text:"Sort by description",
122
122
by:"description",
123
123
dir:"desc"
124
124
}
@@ -158,7 +158,9 @@ new kanban.Toolbar("#toolbar", {
158
158
});
159
159
~~~
160
160
161
-
**Change log:** The *"Undo"* and *"Redo"* controls were added in v1.3
161
+
**Change log:**
162
+
- The *"Undo"* and *"Redo"* controls were added in v1.3
163
+
- The ***items.options[0].label*** parameter of the **sort** control was replaced by the ***items.options[0].text*** parameter in v1.4
162
164
163
165
**Related articles:** [Configuration](../../../guides/configuration#toolbar) and [Customization](../../../guides/customization#custom-toolbar)
Copy file name to clipboardExpand all lines: docs/how_to_start.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,11 @@ yarn config set @dhx:registry https://npm.dhtmlx.com
48
48
yarn add @dhx/trial-kanban
49
49
~~~
50
50
51
-
To get PRO version of Kanban, refer to **[Support Center](https://dhtmlx.com/docs/technical-support.shtml)**!
51
+
To get Kanban under the proprietary license, refer to **[Support Center](https://dhtmlx.com/docs/technical-support.shtml)**!
52
+
:::
53
+
54
+
:::tip
55
+
If you want to integrate JavaScript Kanban into the React, Angular or Vue project, refer to the corresponding [**Examples on Replit**](https://replit.com/@dhtmlx) for more information.
0 commit comments