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_columnshape_config.md
+34-14Lines changed: 34 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,10 +30,10 @@ columnShape?: {
30
30
},
31
31
fixedHeaders?: boolean,
32
32
css?: (column, cards) => string,
33
-
headerTemplate?:template(column=> {
33
+
headerTemplate?:template(props=> {
34
34
return"The HTML template of the column header in the expanded state";
35
35
}),
36
-
collapsedTemplate?:template(column=> {
36
+
collapsedTemplate?:template(props=> {
37
37
return"The HTML template of the column header in the collapsed state";
38
38
}),
39
39
confirmDeletion?: boolean
@@ -94,8 +94,28 @@ To configure the columns appearance, in the **columnShape** object you can speci
94
94
95
95
-`fixedHeaders` - (optional) freezes column headers during vertical scroll (*true* by default). Scroll must be enabled in Kanban itself (height must be limited)
96
96
-`css` - (optional) a function that returns a css class that applies to columns conditionally
97
-
-`headerTemplate` - (optional) the HTML template of the column header in the expanded state
98
-
-`collapsedTemplate` - (optional) the HTML template of the column header in the collapsed state
97
+
-`headerTemplate` - (optional) the HTML template of the column header in the expanded state. The function receives a `props` object with the following properties:
98
+
-`column` - (object) the column data (see [`columns`](api/config/js_kanban_columns_config.md) for the structure)
99
+
-`columnState` - (object) the current state of the column. It always includes:
100
+
-***columnId*** - (string | number) the ID of the column
101
+
-***column*** - (object) the column data (same as `props.column`)
102
+
-***cardsCount*** - (number) the number of cards in the column
103
+
-***noFreeSpace*** - (boolean) ***true*** when the column cannot accept more cards
104
+
105
+
When the [`columns[i].limit`](api/config/js_kanban_columns_config.md) parameter is enabled, it also includes:
106
+
-***totalLimit*** - (number) the configured cards limit
107
+
-***isOverLimit*** - (boolean) ***true*** when the number of cards exceeds the limit
108
+
109
+
When the column belongs to a swimlane (row), it also includes:
110
+
-***rowId*** - (string | number) the ID of the row
111
+
-***row*** - (object) the row data (see [`rows`](api/config/js_kanban_rows_config.md) for the structure)
112
+
-***height*** - (number) the height of the area
113
+
-`isMenuVisible` - (boolean) ***true*** when the menu should be shown for this column header
114
+
-`renaming` - (boolean) ***true*** when the input for editing the column name is active
115
+
-`readonly` - (boolean) ***true*** when column editing is disabled (equivalent of `!readonly.edit`, see the [`readonly`](api/config/js_kanban_readonly_config.md) property)
116
+
-`collapsedTemplate` - (optional) the HTML template of the column header in the collapsed state. The function receives a `props` object with the following properties:
117
+
-`column` - (object) the column data (see [`columns`](api/config/js_kanban_columns_config.md))
118
+
-`columnState` - (object) the current state of the column. The shape is the same as `columnState` in the [`headerTemplate`](#parameters) parameter above
99
119
-`confirmDeletion` - (optional) shows/hides the **confirmation dialog** that allows users to confirm or decline the column deletion
0 commit comments