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: README.md
+52-1Lines changed: 52 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,8 +79,59 @@ settings = {
79
79
}
80
80
```
81
81
82
+
### :page_facing_up: NgxSmartDatatable API
83
+
84
+
| Attributes | Description |
85
+
| --- | --- |
86
+
|`[settings]`| The settings applied to the `table`, which include the `columns` and `data` properties (required) |
87
+
|`(sortedOrder)`| A `sort` event fired when data order is changed (`asc` or `desc`). Note: `ordering` property must be set to `true` in `settings`|
88
+
|`(selectedRows)`| A `select` event fired when a row is selected. Note: `select` property must be set to `true` in `settings`|
89
+
|`(deselectedRows)`| A `deselect` event fired when a row is deselected |
90
+
|`(reorderedRow)`| A `row-reorder` event fired when rows are reordered. Note: `rowReorder` property must be set to `true` in `settings`|
91
+
|`(reorderedColumn)`| A `column-reorder` event fired when columns are reordered. Note: `colReorder` property must be set to `true` in `settings`|
92
+
|`(selectedKeyCells)`| A `key` event fired when a keyboard key is detected and pressed. Note: `keys` property must be set to `true` in `settings`|
93
+
|`(changedPage)`| A `page` event fired when table's paging is updated |
94
+
|`(autoFilledCells)`| An `autoFill` event triggered when an fill action is completed. Note: `autoFill` property must be set to `true` in `settings`|
95
+
|`(displayedResponsive)`| A `responsive-display` event fired when the display of table is updated. Note: `responsive` property must be set to `true` in `settings`|
96
+
|`(loadedTable)`| An event fired when the table is fully loaded |
97
+
|`(loadedjQuery)`| An event fired when an instance of jQuery is loaded |
98
+
99
+
100
+
### Note: :bulb:
101
+
102
+
`(emittedEvent)`: This is used to fire an event(s), which is not mentioned in the above table. The list of all available events can be found [here](https://datatables.net/reference/event/). The name(s) of the event(s) would need to be added to `eventNames` array in the `settings` object.
103
+
104
+
Example of adding `responsive-resize` and `column-reorder` events:
0 commit comments