Skip to content

Commit 6f02d7f

Browse files
committed
[update] grid column properties examples, minor fixes
1 parent 8b60d9a commit 6f02d7f

36 files changed

+121
-172
lines changed

docs/grid/api/grid_adjustcolumnwidth_method.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ grid.adjustColumnWidth("b", "header");
1919

2020
@descr:
2121

22-
If no value is set to the *adjust* parameter, the **adjustColumnWidth** method sets it to *true*.
22+
If no value is set to the `adjust` parameter, the `adjustColumnWidth()` method sets it to *true*.
2323

2424
[comment]: # (@relatedapi: grid/api/grid_adjust_config.md)

docs/grid/api/grid_aftercolumndrag_event.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ description: You can explore the afterColumnDrag event of Grid in the documentat
66

77
# afterColumnDrag
88

9-
{{pronote This functionality requires PRO version of the DHTMLX Grid (or DHTMLX Suite) package.}}
9+
:::tip pro version only
10+
The described functionality requires PRO version of the DHTMLX Grid (or DHTMLX Suite) package.
11+
:::
1012

1113
@short: fires after dragging of a column is finished
1214

docs/grid/api/grid_aftercolumndrop_event.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ description: You can explore the afterColumnDrop event of Grid in the documentat
66

77
# afterColumnDrop
88

9-
{{pronote This functionality requires PRO version of the DHTMLX Grid (or DHTMLX Suite) package.}}
9+
:::tip pro version only
10+
The described functionality requires PRO version of the DHTMLX Grid (or DHTMLX Suite) package.
11+
:::
1012

1113
@short: fires before the user has finished dragging a column but after the mouse button is released
1214

docs/grid/api/grid_afterrowresize_event.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ description: You can explore the afterRowResize event of Grid in the documentati
66

77
# afterRowResize
88

9-
{{pronote This functionality requires PRO version of the DHTMLX Grid (or DHTMLX Suite) package.}}
9+
:::tip pro version only
10+
The described functionality requires PRO version of the DHTMLX Grid (or DHTMLX Suite) package.
11+
:::
1012

1113
@short: fires after the height of a row is changed
1214

docs/grid/api/grid_spans_config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ const grid = new dhx.Grid("grid_container", {
107107
column: "population",
108108
rowspan: 9,
109109
text: "Some text",
110-
toltipTemplate: ({ value, count }) => (`value: ${value}; count: ${count}`),
110+
tooltipTemplate: ({ value, count }) => (`value: ${value}; count: ${count}`),
111111
},
112112
],
113113
data: dataset

docs/grid/api/gridcolumn_properties/gridcolumn_adjust_property.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ adjust?: "data" | "header" | "footer" | boolean;
2323
const grid = new dhx.Grid("grid_container", {
2424
columns: [
2525
{ id: "country", header: [{ text: "Country" }], adjust: "header" },
26-
{ id: "population", header: [{ text: "Population" }] }
26+
// more columns configuration objects
2727
],
2828
adjust: false,
29-
data: dataset
29+
// more options
3030
});
3131
~~~
3232

docs/grid/api/gridcolumn_properties/gridcolumn_align_property.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ align?: "left" | "center" | "right";
2020
~~~jsx
2121
const grid = new dhx.Grid("grid_container", {
2222
columns: [
23-
{ id: "name", header: [{ text: "Name", align: "center" }], align: "right"}
24-
// more options
23+
{ id: "name", header: [{ text: "Name" }], align: "right" },
24+
// more columns configuration objects
2525
],
26-
data: dataset
26+
// more options
2727
});
2828
~~~
2929

docs/grid/api/gridcolumn_properties/gridcolumn_autowidth_property.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ autoWidth?: boolean;
2323
const grid = new dhx.Grid("grid_container", {
2424
columns: [
2525
{ id: "country", header: [{ text: "Country" }], autoWidth: false },
26-
{ id: "population", header: [{ text: "Population" }] },
26+
// more columns configuration objects
2727
],
2828
autoWidth: true,
29-
data: dataset
29+
// more options
3030
});
3131
~~~
3232

docs/grid/api/gridcolumn_properties/gridcolumn_closable_property.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,27 +27,18 @@ closable?: boolean;
2727
const grid = new dhx.Grid("grid_container", {
2828
columns: [
2929
{
30-
width: 150,
3130
id: "country",
3231
header: [{ text: "Country" }],
3332
// grouping of the "country" column is permanently enabled
3433
// and can't be switched off via the group panel
3534
closable: false,
3635
},
37-
{
38-
width: 150,
39-
id: "population",
40-
header: [{ text: "Population" }],
41-
groupable: true,
42-
},
43-
{ width: 150, id: "destiny", header: [{ text: "Density (P/Km²)" }] },
44-
{ width: 150, id: "area", header: [{ text: "Land Area (Km²)" }] },
36+
// more columns configuration objects
4537
],
4638
group: {
47-
order: ["country", "population"]
39+
order: [ "country" ]
4840
},
49-
groupable: true,
50-
data: dataset
41+
// more options
5142
});
5243
~~~
5344

docs/grid/api/gridcolumn_properties/gridcolumn_dateformat_property.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,10 @@ dateFormat?: string;
2626
~~~jsx
2727
const grid = new dhx.Grid("grid_container", {
2828
columns: [
29-
{
30-
width: 150, id: "date", header: [{ text: "Date" }],
31-
type: "date", dateFormat: "%M %d %Y"
32-
},
33-
// more columns
29+
{ id: "date", header: [{ text: "Date" }], type: "date", dateFormat: "%M %d %Y" },
30+
// more columns configuration objects
3431
],
35-
data: dataset
32+
// more options
3633
});
3734
~~~
3835

0 commit comments

Comments
 (0)