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
{{ message }}
Repository navigation
Commit 7a6aa8d
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/angular_integration.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
sidebar_label: Integration with Angular
3
3
title: Angular Integration
4
-
description: You can learn about the Angular integration of the DHTMLX JavaScript Spreadsheet library in the documentation. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Spreadsheet.
4
+
description: Use DHTMLX Spreadsheet in an Angular application. Create a project, add Spreadsheet as an Angular component, load data and handle events.
5
5
---
6
6
7
7
# Integration with Angular
@@ -234,6 +234,10 @@ ngOnDestroy() {
234
234
}
235
235
~~~
236
236
237
+
:::info
238
+
The `destructor()` method removes the event handlers attached with `spreadsheet.events.on()`. When a new Spreadsheet instance is created, for example, when the component is created again, attach the handlers to the new instance.
239
+
:::
240
+
237
241
### Step 3. Adding Spreadsheet into the app
238
242
239
243
To add the `SpreadsheetComponent` component into the app, open the *src/app/app.component.ts* file and replace the default code with the following one:
Copy file name to clipboardExpand all lines: docs/api/api_overview.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
sidebar_label: API overview
3
3
title: API Overview
4
-
description: You can check an API overview of the DHTMLX JavaScript Spreadsheet library in the documentation. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Spreadsheet.
4
+
description: Overview of the DHTMLX Spreadsheet API, covering the constructor, methods, events, properties, and the sheet manager, selection, event bus and export modules.
Copy file name to clipboardExpand all lines: docs/api/eventsbus_detach_method.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
sidebar_label: detach()
3
3
title: detach events bus method
4
-
description: You can learn about the detach events bus method in the documentation of the DHTMLX JavaScript Spreadsheet library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Spreadsheet.
4
+
description: Detach an event handler attached with the on() method from DHTMLX Spreadsheet with the events.detach() method, by the name of the event.
Copy file name to clipboardExpand all lines: docs/api/eventsbus_fire_method.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
sidebar_label: fire()
3
3
title: fire events bus method
4
-
description: You can learn about the fire events bus method in the documentation of the DHTMLX JavaScript Spreadsheet library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Spreadsheet.
4
+
description: Trigger an inner event of DHTMLX Spreadsheet with the events.fire() method, passing the name of the event and an array of the event data.
5
5
---
6
6
7
7
# fire()
@@ -32,7 +32,7 @@ The method returns `false` if some of the event handlers return `false`. Otherwi
Copy file name to clipboardExpand all lines: docs/api/eventsbus_on_method.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
sidebar_label: on()
3
3
title: on events bus method
4
-
description: You can learn about the on events bus method in the documentation of the DHTMLX JavaScript Spreadsheet library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Spreadsheet.
4
+
description: Attach a handler to an inner event of DHTMLX Spreadsheet with the events.on() method, for example, to react to a change of the cell style.
Copy file name to clipboardExpand all lines: docs/api/export_json_method.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
sidebar_label: json()
3
3
title: json export method
4
-
description: You can learn about the json export method in the documentation of the DHTMLX JavaScript Spreadsheet library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Spreadsheet.
4
+
description: Export the data of DHTMLX Spreadsheet into a JSON file with the export.json() method.
Copy file name to clipboardExpand all lines: docs/api/export_xlsx_method.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
sidebar_label: xlsx()
3
3
title: xlsx export method
4
-
description: You can learn about the xlsx export method in the documentation of the DHTMLX JavaScript Spreadsheet library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Spreadsheet.
4
+
description: Export the data of DHTMLX Spreadsheet into an Excel (.xlsx) file with the export.xlsx() method, optionally with a custom file name.
Copy file name to clipboardExpand all lines: docs/api/overview/actions_overview.md
+10-3Lines changed: 10 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
sidebar_label: Spreadsheet actions
3
3
title: Actions Overview
4
-
description: You can check an Actions overview of the DHTMLX JavaScript Spreadsheet library in the documentation. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Spreadsheet.
4
+
description: Overview of the DHTMLX Spreadsheet actions and the full list of the actions that you can handle in the beforeAction and afterAction events.
|**toggleFreeze**| The action is executed when freezing/unfreezing columns/rows |
79
79
|**unmerge**| The action is executed when splitting cells |
80
80
81
+
:::note
82
+
In the `config` object of the [`beforeAction`](api/spreadsheet_beforeaction_event.md) and [`afterAction`](api/spreadsheet_afteraction_event.md) events, the **resizeCol** and **resizeRow** actions pass:
83
+
84
+
-`cell` - the cell or range of cells whose columns or rows are resized
85
+
-`val` - the new width or height in pixels. It is set only for the *Column width* and *Row height* commands, not for resizing by dragging
86
+
:::
87
+
81
88
**Change log:**
82
89
83
90
- The **toggleFreeze** and **toggleVisibility** actions were added in v5.2
0 commit comments