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_blockselection_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
@@ -31,7 +31,7 @@ blockSelection?:
31
31
dir:"up"|"down"|"right"|"left";
32
32
index: number;
33
33
grid: IProGrid;
34
-
}) =>void);
34
+
}) =>{ prev: any; current: any } |void);
35
35
};
36
36
area?: boolean;
37
37
};
@@ -64,19 +64,19 @@ The `blockSelection` property can be set in two ways:
64
64
<tbody>
65
65
<tr>
66
66
<td><b>disabled</b></td>
67
-
<td>disables the module on startup, `false` by default</td>
67
+
<td>(<i>boolean</i>) disables the module on startup, `false` by default</td>
68
68
</tr>
69
69
<tr>
70
70
<td><b>mode</b></td>
71
-
<td>the operating mode of the module:<ul><li><i>"range"</i> - managed through the <a href="../../usage_rangeselection/">`RangeSelection` module</a></li><li><i>"manual"</i> - managed through the manual control</li></ul></td>
71
+
<td>(<i>string</i>) the operating mode of the module:<ul><li><i>"range"</i> - managed through the <a href="../../usage_rangeselection/">`RangeSelection` module</a></li><li><i>"manual"</i> - managed through the manual control</li></ul></td>
72
72
</tr>
73
73
<tr>
74
74
<td><b>handle</b></td>
75
-
<td>enables the handle for resizing. Can be set as a *boolean* value or as an *object*, `true` by default. <br>As an *object* can contain the following properties:<ul><li><b>allowAxis</b> - restricts the handle movement: `"x"` (horizontal), `"y"` (vertical), `"xy"` (both directions). `"xy"` by default</li><li><b>handler</b> - a *function* to process the handle actions or *boolean* to enable/disable. As a *function*, the property takes the following parameters:</li><ul><li><b>cell</b> - the object of the current cell. Contains the following properties:</li><ul><li>*row* - the configuration object of a row</li><li>*column* - the configuration object of a column</li></ul></ul><ul><li><b>array</b> - an array of all selected cells. Each cell object contains the following properties: </li><ul><li>*row* - the configuration object of a row</li><li>*column* - the configuration object of a column</li></ul></ul><ul><li><b>range</b> - an array of pre-selected cells. Each cell object contains the following properties: </li><ul><li>*row* - the configuration object of a row</li><li>*column* - the configuration object of a column</li></ul></ul><ul><li><b>dir</b> - the direction of cells selection: "up" | "down" | "right" | "left"</li></ul><ul><li><b>index</b> - the index of the iterated cell</li></ul><ul><li><b>grid</b> - the `dhx.Grid` component object</li></ul></ul></td>
75
+
<td>(<i>boolean | object</i>) enables the handle for resizing or provides additional configuration options, `true` by default. As an *object* can contain the following properties:<ul><li><b>allowAxis</b> - (<i>string</i>) restricts the handle movement: `"x"` (horizontal), `"y"` (vertical), `"xy"` (both directions). `"xy"` by default</li><li><b>handler</b> - (<i>function | boolean</i>) a *function* to process the handle actions or *boolean* to enable/disable. As a *function*, the property takes the following parameters:</li><ul><li><b>cell</b> - (<i>object</i>) the object of the current cell. Contains the following properties:</li><ul><li>*row* - the configuration object of a row</li><li>*column* - the configuration object of a column</li></ul></ul><ul><li><b>array</b> - (<i>array</i>) an array of all selected cells. Each cell object contains the following properties: </li><ul><li>*row* - the configuration object of a row</li><li>*column* - the configuration object of a column</li></ul></ul><ul><li><b>range</b> - (<i>array</i>) an array of pre-selected cells. Each cell object contains the following properties: </li><ul><li>*row* - the configuration object of a row</li><li>*column* - the configuration object of a column</li></ul></ul><ul><li><b>dir</b> - (<i>string</i>) the direction of cells selection: "up" | "down" | "right" | "left"</li></ul><ul><li><b>index</b> - (<i>number</i>) the index of the iterated cell</li></ul><ul><li><b>grid</b> - (<i>object</i>) the `dhx.Grid` component object</li></ul>The <b>handler</b> function may return an <i>object with the history of Grid actions</i>. The returned object contains the following properties:<ul><li><b>prev</b> - the previous cell value</li><li><b>current</b> - the new cell value</li></ul></ul></td>
76
76
</tr>
77
77
<tr>
78
78
<td><b>area</b></td>
79
-
<td>enables the display of the selection area, `true` by default</td>
79
+
<td>(<i>boolean</i>) enables the display of the selection area, `true` by default</td>
Copy file name to clipboardExpand all lines: docs/grid/api/grid_clipboard_config.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,9 +49,9 @@ The `clipboard` property can be set in two ways:
49
49
50
50
- as a *boolean* value it enables or disables the `clipboard` module upon the component initialization
51
51
- as an *object* it enables the module and allows defining [modifier functions](grid/usage_clipboard.md/#using-formatter-functions) for data processing. The following properties are available:
52
-
-`copyModifier` - modifies data before copying to the clipboard. Accepts as parameters the cell value, the cell object, and the `cut` flag (set to `true`, if it's a cut operation)
53
-
-`cutModifier` - modifies the cell data before cutting (before clearing the cell). Accepts as parameters the cell value and the cell object
54
-
-`pasteModifier` - modifies data from the clipboard before pasting into a cell. Accepts as parameters the cell value and the cell object
52
+
-`copyModifier` - (*function*) modifies data before copying to the clipboard. Accepts as parameters the cell value, the cell object, and the `cut` flag (set to `true`, if it's a cut operation)
53
+
-`cutModifier` - (*function*) modifies the cell data before cutting (before clearing the cell). Accepts as parameters the cell value and the cell object
54
+
-`pasteModifier` - (*function*) modifies data from the clipboard before pasting into a cell. Accepts as parameters the cell value and the cell object
55
55
56
56
The example below demonstrates the clipboard configuration with all the modifiers in use:
57
57
@@ -76,6 +76,8 @@ const grid = new dhx.Grid("grid_container", {
76
76
77
77
**Related sample**: [Grid. Clipboard. Financial data with formatted copy/paste](https://snippet.dhtmlx.com/1fnkhwm0)
Copy file name to clipboardExpand all lines: docs/grid/configuration.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2185,7 +2185,7 @@ const grid = new dhx.Grid("grid", {
2185
2185
});
2186
2186
~~~
2187
2187
2188
-
### Adjusting the DragPanel module
2188
+
### Adjusting DragPanel module
2189
2189
2190
2190
:::tip Pro version only
2191
2191
This functionality requires PRO version of the DHTMLX Grid (or DHTMLX Suite) package.
@@ -2234,10 +2234,10 @@ const grid = new dhx.Grid("grid_container", {
2234
2234
});
2235
2235
~~~
2236
2236
2237
-
You can specify additional configuration options for the `DragPanel` module while initializing the component. For this, you need to set the `dragPanel` property as an object. The following options are available:
2238
-
- `css` - specifies a custom CSS class for styling the drag panel
2239
-
- `icon` - defines a custom icon for the drag handle
2240
-
- `width` - sets the width of the drag panel in pixels
2237
+
You can specify additional configuration options for the `DragPanel` module while initializing the component. For this, you need to set the `dragPanel` property as an *object*. The following options are available:
2238
+
- `css` - (*string*) specifies a custom CSS class for styling the drag panel
2239
+
- `icon` - (*string*) defines a custom icon for the drag handle
2240
+
- `width` - (*number*) sets the width of the drag panel in pixels
2241
2241
2242
2242
The following example demonstrates configuring the `DragPanel` module with custom styling and width:
2243
2243
@@ -2537,7 +2537,7 @@ The `rangeSelection` property can be set in two ways:
2537
2537
2538
2538
- as a *boolean* value it enables or disables the range selection module upon the component initialization
2539
2539
- as an *object* it enables the module and allows setting additional configuration options during the component initialization. The following options are available:
2540
-
- **disabled** - makes the module inactive upon initialization of the component
2540
+
- `disabled` - (*boolean*) makes the module inactive upon initialization of the component
2541
2541
2542
2542
The example below demonstrates interaction with the RangeSelection module's API when range selection is configured to be inactive on the component initialization.
2543
2543
@@ -2594,19 +2594,19 @@ The `blockSelection` property can be set in two ways:
2594
2594
<tbody>
2595
2595
<tr>
2596
2596
<td><b>disabled</b></td>
2597
-
<td>disables the module on startup, `false` by default</td>
2597
+
<td>(<i>boolean</i>) disables the module on startup, `false` by default</td>
2598
2598
</tr>
2599
2599
<tr>
2600
2600
<td><b>mode</b></td>
2601
-
<td>the operating mode of the module:<ul><li><i>"range"</i> - managed through the <a href="../../usage_rangeselection/">`RangeSelection` module</a></li><li><i>"manual"</i> - managed through the manual control</li></ul></td>
2601
+
<td>(<i>string</i>) the operating mode of the module:<ul><li><i>"range"</i> - managed through the <a href="../../usage_rangeselection/">`RangeSelection` module</a></li><li><i>"manual"</i> - managed through the manual control</li></ul></td>
2602
2602
</tr>
2603
2603
<tr>
2604
2604
<td><b>handle</b></td>
2605
-
<td>enables the handle for resizing. Can be set as a *boolean* value or as an *object*, `true` by default. <br>As an *object* can contain the following properties:<ul><li><b>allowAxis</b> - restricts the handle movement: `"x"` (horizontal), `"y"` (vertical), `"xy"` (both directions). `"xy"` by default</li><li><b>handler</b> - a *function* to process the handle actions or *boolean* to enable/disable. As a *function*, the property takes the following parameters:</li><ul><li><b>cell</b> - the object of the current cell. Contains the following properties:</li><ul><li>*row* - the configuration object of a row</li><li>*column* - the configuration object of a column</li></ul></ul><ul><li><b>array</b> - an array of all selected cells. Each cell object contains the following properties: </li><ul><li>*row* - the configuration object of a row</li><li>*column* - the configuration object of a column</li></ul></ul><ul><li><b>range</b> - an array of pre-selected cells. Each cell object contains the following properties: </li><ul><li>*row* - the configuration object of a row</li><li>*column* - the configuration object of a column</li></ul></ul><ul><li><b>dir</b> - the direction of cells selection: "up" | "down" | "right" | "left"</li></ul><ul><li><b>index</b> - the index of the iterated cell</li></ul><ul><li><b>grid</b> - the `dhx.Grid` component object</li></ul></ul></td>
2605
+
<td>(<i>boolean | object</i>) enables the handle for resizing or provides additional configuration options, `true` by default. As an *object* can contain the following properties:<ul><li><b>allowAxis</b> - (<i>string</i>) restricts the handle movement: `"x"` (horizontal), `"y"` (vertical), `"xy"` (both directions). `"xy"` by default</li><li><b>handler</b> - (<i>function | boolean</i>) a *function* to process the handle actions or *boolean* to enable/disable. As a *function*, the property takes the following parameters:</li><ul><li><b>cell</b> - (<i>object</i>) the object of the current cell. Contains the following properties:</li><ul><li>*row* - the configuration object of a row</li><li>*column* - the configuration object of a column</li></ul></ul><ul><li><b>array</b> - (<i>array</i>) an array of all selected cells. Each cell object contains the following properties: </li><ul><li>*row* - the configuration object of a row</li><li>*column* - the configuration object of a column</li></ul></ul><ul><li><b>range</b> - (<i>array</i>) an array of pre-selected cells. Each cell object contains the following properties: </li><ul><li>*row* - the configuration object of a row</li><li>*column* - the configuration object of a column</li></ul></ul><ul><li><b>dir</b> - (<i>string</i>) the direction of cells selection: "up" | "down" | "right" | "left"</li></ul><ul><li><b>index</b> - (<i>number</i>) the index of the iterated cell</li></ul><ul><li><b>grid</b> - (<i>object</i>) the `dhx.Grid` component object</li></ul>The <b>handler</b> function may return an <i>object with the history of Grid actions</i>. The returned object contains the following properties:<ul><li><b>prev</b> - the previous cell value</li><li><b>current</b> - the new cell value</li></ul></ul></td>
2606
2606
</tr>
2607
2607
<tr>
2608
2608
<td><b>area</b></td>
2609
-
<td>enables the display of the selection area, `true` by default</td>
2609
+
<td>(<i>boolean</i>) enables the display of the selection area, `true` by default</td>
2610
2610
</tr>
2611
2611
</tbody>
2612
2612
</table>
@@ -2690,9 +2690,9 @@ The `clipboard` property can be set in two ways:
2690
2690
2691
2691
- as a *boolean* value it enables or disables the `clipboard` module upon the component initialization
2692
2692
- as an *object* it enables the module and allows defining [modifier functions](grid/usage_clipboard.md/#using-formatter-functions) for data processing. The following properties are available:
2693
-
- `copyModifier` - modifies data before copying to the clipboard. Accepts as parameters the cell value, the cell object, and the `cut` flag (set to `true`, if it's a cut operation)
2694
-
-`cutModifier`-modifiesthecelldatabeforecutting (before clearing the cell). Acceptsasparametersthecellvalueandthecellobject
- `copyModifier` - (*function*) modifies data before copying to the clipboard. Accepts as parameters the cell value, the cell object, and the `cut` flag (set to `true`, if it's a cut operation)
2694
+
-`cutModifier`-(*function*) modifies the cell data before cutting (before clearing the cell). Accepts as parameters the cell value and the cell object
2695
+
- `pasteModifier` - (*function*) modifies data from the clipboard before pasting into a cell. Accepts as parameters the cell value and the cell object
2696
2696
2697
2697
The example below demonstrates the clipboard configuration with all the modifiers in use:
2698
2698
@@ -2746,8 +2746,8 @@ const grid = new dhx.Grid("grid_container", {
2746
2746
The `history` property can be set in two ways:
2747
2747
- as a *boolean* value it enables or disables the `History`module upon the component initialization
2748
2748
- as an *object* it enables the module and allows setting additional parameters:
2749
-
-`limit`- the maximum number of actions stored in the history. When the limit is exceeded, the oldest actions are removed
2750
-
-`disabled`-if`true`, the module is disabled on initialization, and no actions are recorded in the history
2749
+
-`limit`-(*number*) the maximum number of actions stored in the history. When the limit is exceeded, the oldest actions are removed
2750
+
-`disabled`-(*boolean*) if`true`, the module is disabled on initialization, and no actions are recorded in the history
2751
2751
2752
2752
The example below demonstrates configuring the modulewith a history limit of10actions. Themodule is disabled on initialization:
0 commit comments