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 09f6add
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.
|**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