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_clipboard_config.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ description: You can explore the clipboard config of Grid in the documentation o
10
10
This functionality requires PRO version of the DHTMLX Grid (or DHTMLX Suite) package.
11
11
:::
12
12
13
-
@short: Optional. Enables/disables the [`Clipboard`](grid/usage_clipboard.md) module within a grid
13
+
@short: Optional. Enables/disables the Clipboard module during the Grid initialization
14
14
15
15
:::note
16
16
The module requires the [`RangeSelection`](grid/usage_rangeselection.md) module to be enabled and is best used in conjunction with the [`BlockSelection`](grid/usage_blockselection.md) module in the `"range"` mode (enabled on initialization of the `Clipboard` module) for convenient range selection via the UI.
@@ -74,8 +74,8 @@ const grid = new dhx.Grid("grid_container", {
Copy file name to clipboardExpand all lines: docs/grid/api/grid_dragpanel_config.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ description: You can explore the dragPanel config of Grid in the documentation o
10
10
This functionality requires PRO version of the DHTMLX Grid (or DHTMLX Suite) package.
11
11
:::
12
12
13
-
@short: Optional. Enables/disables the [`dragPanel`](grid/usage_dragpanel.md) module within a grid
13
+
@short: Optional. Enables/disables the DragPanel module during the Grid initialization
14
14
15
15
### Usage
16
16
@@ -27,7 +27,7 @@ dragPanel?:
27
27
@default: false
28
28
29
29
:::note
30
-
The module is automatically enabled, if the row Drag-and-Dropis active (e.g., `dragItem: "row"` or `dragItem: "both"`), and either the [`BlockSelection`](grid/usage_blockselection.md) or [`Clipboard`](grid/usage_clipboard.md) modules are enabled.
30
+
The module is automatically enabled, if the [row Drag-and-Drop](grid/configuration.md/#drag-n-drop) functionality is active (e.g. via the `dragItem: "row"` or `dragItem: "both"` properties), and either the [`BlockSelection`](grid/usage_blockselection.md) or [`Clipboard`](grid/usage_clipboard.md) modules are enabled.
31
31
:::
32
32
33
33
@example:
@@ -85,8 +85,9 @@ const grid = new dhx.Grid("grid_container", {
Copy file name to clipboardExpand all lines: docs/grid/api/history/add_method.md
+4-6Lines changed: 4 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ description: You can explore the add method of Grid history in the documentation
6
6
7
7
# add()
8
8
9
-
@short: adds a new action to the history
9
+
@short: adds a new action into the history of actions within the Grid
10
10
11
11
### Usage
12
12
@@ -17,7 +17,6 @@ interface IAction {
17
17
type: ActionType;
18
18
batch: IRow[];
19
19
inverse?: IAction;
20
-
timestamp?: number;
21
20
}
22
21
23
22
add(action: IAction):void;
@@ -29,14 +28,13 @@ add(action: IAction): void;
29
28
-`type: ActionType` - the type of action: "add", "remove", "removeAll", or "change"
30
29
-`batch: IRow[]` - an array of rows representing the data affected by the action (e.g., added, removed, or modified rows)
31
30
-`inverse?: IAction` - the inverse action required for undoing (mandatory for the "change" and "removeAll" types, not required for other types)
32
-
-`timestamp?: number` - the timestamp of the action in milliseconds (set automatically, if not provided)
33
31
34
32
:::note
35
-
The `action` argument must conform to the `IAction` interface. If the module is disabled, the action type is invalid, or the `inverse` property is missing for a `change` action, the [`error`](grid/api/history/error_event.md) event is triggered. The `timestamp` field is automatically added if not specified.
33
+
The `action` argument must conform to the `IAction` interface. If the module is disabled, the action type is invalid, or the `inverse` property is missing (for actions with the "change" and "removeAll" types), the [`error`](grid/api/history/error_event.md) event is triggered.
36
34
:::
37
35
38
36
@example:
39
-
// The example shows adding a new row via `DataCollection`with an explicitly specified timestamp
37
+
// The example shows adding a new row via `DataCollection`
40
38
const grid = new dhx.Grid("grid_container", {
41
39
columns: [
42
40
{ id: "name", header: [{ text: "Name" }] },
@@ -52,7 +50,7 @@ const grid = new dhx.Grid("grid_container", {
**Related sample:**[Grid. History. Configuration](https://snippet.dhtmlx.com/m88562wf)
39
+
39
40
**Related article**: [Applying undo/redo operations to Grid history actions](grid/usage_history.md/#applying-undoredo-operations-to-grid-history-actions)
**Related sample:**[Grid. History. Configuration](https://snippet.dhtmlx.com/m88562wf)
39
+
39
40
**Related article**: [Applying undo/redo operations to Grid history actions](grid/usage_history.md/#applying-undoredo-operations-to-grid-history-actions)
0 commit comments