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/grid/api/grid_adjust_config.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -48,17 +48,17 @@ The property can be specified to one of the available adjustment modes:
48
48
</tbody>
49
49
</table>
50
50
51
-
The **adjust** property has a priority over the [autoWidth](../../../grid/configuration/#autowidth-for-columns) property if it is specified either for a grid or for its column, and over the [width](../../../grid/api/api_gridcolumn_properties/) property of the column.
51
+
The `adjust` property has a priority over the [`autoWidth`](../../../grid/configuration/#autowidth-for-columns) property if it is specified either for a grid or for its column, and over the [`width`](../../../grid/api/api_gridcolumn_properties/) property of the column.
52
52
53
-
The width the columns will be adjusted to also depends on the values of the [minWidth/maxWidth](../../../grid/api/api_gridcolumn_properties/) properties if they are set for a column.
53
+
The width the columns will be adjusted to also depends on the values of the [`minWidth/maxWidth`](../../../grid/api/api_gridcolumn_properties/) properties if they are set for a column.
54
54
55
55
**Note** that:
56
56
57
57
- to optimize performance, you should specify `htmlEnable: true` in the configuration object of the column which contains HTML content
58
58
- you can also specify `htmlEnable:true` in the configuration object of Grid
59
59
-`htmlEnable: true` allows calculating the content of simple HTML templates by excluding HTML markup and calculating internal content
60
-
- in case of complex HTML data, usage of the **adjust** config may lead to incorrect size calculations
61
-
- the enabled **adjust** config (including the "header", "footer", "data" modes) adjusts the width of columns taking into account the [template](grid/api/api_gridcolumn_properties.md) added to cells. You need to set the **content** attribute of the [header/footer](grid/api/api_gridcolumn_properties.md) properties to one of the following modes: "avg" | "sum" | "max" | "min" | "count", otherwise **text** will be calculated
60
+
- in case of complex HTML data, usage of the `adjust` config may lead to incorrect size calculations
61
+
- the enabled `adjust` config (including the "header", "footer", "data" modes) adjusts the width of columns taking into account the [`template`](grid/api/api_gridcolumn_properties.md) added to cells. You need to set the **content** attribute of the [`header/footer`](grid/api/api_gridcolumn_properties.md) properties to one of the following modes: "avg" | "sum" | "max" | "min" | "count", otherwise **text** will be calculated
Copy file name to clipboardexpand all lines: docs/grid/api/grid_autoheight_config.md
+6-4
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,9 @@ description: You can explore the autoHeight config of Grid in the documentation
6
6
7
7
# autoHeight
8
8
9
-
{{pronote This functionality requires PRO version of the DHTMLX Grid (or DHTMLX Suite) package.}}
9
+
:::tip Pro version only
10
+
This functionality requires PRO version of the DHTMLX Grid (or DHTMLX Suite) package.
11
+
:::
10
12
11
13
@short: Optional. Makes long text split into multiple lines based on the width of the column, controls the automatic height adjustment of the header/footer and cells with data
12
14
@@ -29,8 +31,8 @@ const grid = new dhx.Grid("grid_container", {
29
31
30
32
You can control the autoheight of the header/footer separately with the help of the [](grid/api/grid_headerautoheight_config.md) and [](grid/api/grid_footerautoheight_config.md) configuration options of Grid. For example, you can disable autoheight of the header and the footer, while it is enabled for the whole Grid:
31
33
32
-
~~~js
33
-
constgrid=newdhx.Grid("grid", {
34
+
~~~jsx
35
+
constgrid=newdhx.Grid("grid_container", {
34
36
columns: [
35
37
// columns config
36
38
],
@@ -46,7 +48,7 @@ const grid = new dhx.Grid("grid", {
46
48
- to optimize performance, you should specify `htmlEnable: true` in the configuration object of the column which contains HTML content
47
49
- you can also specify `htmlEnable:true` in the configuration object of Grid
48
50
-`htmlEnable: true` allows calculating the content of simple HTML templates by excluding HTML markup and calculating internal content
49
-
- in case of complex HTML data, usage of the **autoHeight** config may lead to incorrect size calculations
51
+
- in case of complex HTML data, usage of the `autoHeight` config may lead to incorrect size calculations
50
52
- note that if you decide to change the font type, its size and offsets, correct calculation of the cell's autoHeight can't be ensured
Copy file name to clipboardexpand all lines: docs/grid/api/grid_autowidth_config.md
+7-3
Original file line number
Diff line number
Diff line change
@@ -25,11 +25,15 @@ const grid = new dhx.Grid("grid_container", {
25
25
26
26
**Related sample**: [Grid. Columns auto width](https://snippet.dhtmlx.com/4as4y3l4)
27
27
28
-
{{note The property is ignored if the [adjust](../../../grid/configuration/#autosize-for-columns) property is used.}}
28
+
:::note
29
+
The property is ignored if the [`adjust`](../../../grid/configuration/#autosize-for-columns) property is used.
30
+
:::
29
31
30
-
The width of the columns is calculated on the base of the sizes of the container of the grid and the values of the [minWidth/maxWidth](../../../grid/api/api_gridcolumn_properties/) properties if they are set for the columns.
32
+
The width of the columns is calculated on the base of the sizes of the container of the grid and the values of the [`minWidth/maxWidth`](../../../grid/api/api_gridcolumn_properties/) properties if they are set for the columns.
31
33
32
-
{{note If the **width** property is specified in the configuration object of a column, the **autoWidth** property won't work for this column.}}
34
+
:::note
35
+
If the `width` property is specified in the configuration object of a column, the `autoWidth` property won't work for this column.
Copy file name to clipboardexpand all lines: docs/grid/api/grid_css_config.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ description: You can explore the css config of Grid in the documentation of the
44
44
45
45
Note, that the DHTMLX library provides [a set of own CSS classes](helpers/base_elements.md#list-of-css-classes-for-styling-a-widget) that you can also apply to change the appearance of Grid:
Copy file name to clipboardexpand all lines: docs/grid/api/grid_dragitem_config.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,9 @@ description: You can explore the dragItem config of Grid in the documentation of
6
6
7
7
# dragItem
8
8
9
-
{{pronote This functionality requires PRO version of the DHTMLX Grid (or DHTMLX Suite) package. <br>In case you use GPL version, you will be able to reorder rows only.}}
9
+
:::tip pro version only
10
+
This functionality requires PRO version of the DHTMLX Grid (or DHTMLX Suite) package. <br>In case you use GPL version, you will be able to reorder rows only.
11
+
:::
10
12
11
13
@short: Optional. Enables the possibility to reorder grid columns or (and) rows by drag and drop
**Related article:**[Summary of calculated values](grid/configuration.md#custom-statistics-in-the-column-headerfooter-and-spans)
85
+
**Related article:**[Custom statistics in the column header/footer and spans](../../configuration/#custom-statistics-in-the-column-headerfooter-and-spans)
description: You can explore the adjust config of Grid column in the documentation of the DHTMLX JavaScript UI library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Suite.
5
+
---
6
+
7
+
# adjust
8
+
9
+
@short: Optional. Defines whether the width of a column is automatically adjusted to its content
- The `adjust` property has a priority over the `autoWidth` property if it is specified either for the grid or for the column, and over the `width` property of the column.
34
+
- The width the columns will be adjusted to also depends on the values of the `minWidth/maxWidth` properties if they are set for a column.
35
+
36
+
**Related article**: [Autosize for columns](grid/configuration.md#autosize-for-columns)
description: You can explore the align config of Grid column in the documentation of the DHTMLX JavaScript UI library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Suite.
description: You can explore the autoWidth config of Grid column in the documentation of the DHTMLX JavaScript UI library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Suite.
5
+
---
6
+
7
+
# autoWidth
8
+
9
+
@short: Optional. Enables/disables the ability of a column to adjust its size to the size of Grid
- If `autoWidth` is set for a column, the width of the column is calculated on the base of the sizes of the container of the grid and the values of the `minWidth/maxWidth` properties if they are set for the column.
36
+
- The property is ignored if the [`adjust`](grid/configuration.md#autosize-for-columns) property is used.
37
+
- If the `width` property is specified in the configuration object of a column, the `autoWidth` property won't work for this column.
38
+
39
+
**Related article**: [Autowidth for columns](grid/configuration.md/#autowidth-for-columns)
description: You can explore the closable config of Grid column in the documentation of the DHTMLX JavaScript UI library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Suite.
5
+
---
6
+
7
+
# closable
8
+
9
+
@short: Optional. Either allows closing a particular element of the group panel or makes it permanently enabled
10
+
11
+
:::tip pro version only
12
+
The described functionality requires PRO version of the DHTMLX Grid (or DHTMLX Suite) package.
13
+
:::
14
+
15
+
### Usage
16
+
17
+
~~~jsx
18
+
closable?: boolean;
19
+
~~~
20
+
21
+
@default: true
22
+
23
+
@descr:
24
+
### Example
25
+
26
+
~~~jsx
27
+
constgrid=newdhx.Grid("grid_container", {
28
+
columns: [
29
+
{
30
+
width:150,
31
+
id:"country",
32
+
header: [{ text:"Country" }],
33
+
// grouping of the "country" column is permanently enabled
description: You can explore the dateFormat config of Grid column in the documentation of the DHTMLX JavaScript UI library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Suite.
5
+
---
6
+
7
+
# dateFormat
8
+
9
+
@short: Optional. Defines the format of dates
10
+
11
+
:::note
12
+
The date format must include delimiters (spaces or symbols), otherwise an error will be thrown
13
+
:::
14
+
15
+
### Usage
16
+
17
+
~~~jsx
18
+
dateFormat?: string;
19
+
~~~
20
+
21
+
@default: "%M %d %Y"
22
+
23
+
@descr:
24
+
### Example
25
+
26
+
~~~jsx
27
+
constgrid=newdhx.Grid("grid_container", {
28
+
columns: [
29
+
{
30
+
width:150, id:"date", header: [{ text:"Date" }],
31
+
type:"date", dateFormat:"%M %d %Y"
32
+
},
33
+
// more columns
34
+
],
35
+
data: dataset
36
+
});
37
+
~~~
38
+
39
+
**Related article**: [Setting the format for dates](grid/configuration.md#setting-the-format-for-dates)
40
+
41
+
**Related sample**: [Grid. Data formats (percent, currency, date and combination with templates)](https://snippet.dhtmlx.com/ox37nvdm)
description: You can explore the draggable config of Grid column in the documentation of the DHTMLX JavaScript UI library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Suite.
5
+
---
6
+
7
+
# draggable
8
+
9
+
@short: Optional. Defines whether a column is draggable
description: You can explore the editable config of Grid column in the documentation of the DHTMLX JavaScript UI library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Suite.
5
+
---
6
+
7
+
# editable
8
+
9
+
@short: Optional. Defines whether a column is editable
0 commit comments