9 examples of 'destroy datatable' in JavaScript

Every line of 'destroy datatable' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
155destroy(all) {
156 super.destroy(all);
157 _.each(this.rows, row => _.each(row, col => this.removeComponent(col, row)));
158 this.rows = [];
159}
62destroy($table) {
63 const remindAction = jTool('.remind-action', $table);
64
65 // 清理: 表头提醒移入事件
66 remindAction.unbind('mouseenter');
67
68 // 清理: 表头提醒移出事件
69 remindAction.unbind('mouseleave');
70}
141destroy() {
142 let table = this;
143
144 table.$el.trigger('datatable:beforedestroy');
145 table.emit('local::beforeDestroy dataTableBeforeDestroy', table);
146
147 table.attachEvents();
148
149 if (table.$el[0]) {
150 table.$el[0].f7DataTable = null;
151 delete table.$el[0].f7DataTable;
152 }
153 Utils.deleteProps(table);
154 table = null;
155}
31_destroy() {
32 this.table.off('rowsUpdated', this._tableRowsUpdatedHandler);
33 this.table.off('rowsInserted', this._tableRowsInsertedHandler);
34 super._destroy();
35}
109destroy() {
110 this.masterCollection.off('add', this.add);
111 this.masterCollection.off('remove', this.remove);
112}
35clear() {
36 this.table.DataTable().clear();
37}
91destroy() {
92 this.headerRow_.removeEventListener('change', this.handleHeaderRowCheckboxChange_);
93 this.content_.removeEventListener('change', this.handleRowCheckboxChange_);
94
95 this.headerRowCheckbox_.destroy();
96 this.rowCheckboxList_.forEach((checkbox) => checkbox.destroy());
97}
1009public ngOnDestroy(): void {
1010 if (this.dataFetchStreamSubscription) {
1011 this.dataFetchStreamSubscription.unsubscribe();
1012 }
1013
1014 if (this.rowSelectChangeSubscription) {
1015 this.rowSelectChangeSubscription.unsubscribe();
1016 }
1017
1018 if (this.scrollPositionSubscription) {
1019 this.scrollPositionSubscription.unsubscribe();
1020 }
1021
1022 this.dataTableResourceService.dispose();
1023}
125deleteData(id: string): void {
126 alert('Delete data: ' + id);
127}

Related snippets