4 examples of 'datatable destroy' in JavaScript

Every line of 'datatable destroy' 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
62destroy($table) {
63 const remindAction = jTool('.remind-action', $table);
64
65 // 清理: 表头提醒移入事件
66 remindAction.unbind('mouseenter');
67
68 // 清理: 表头提醒移出事件
69 remindAction.unbind('mouseleave');
70}
155destroy(all) {
156 super.destroy(all);
157 _.each(this.rows, row => _.each(row, col => this.removeComponent(col, row)));
158 this.rows = [];
159}
31_destroy() {
32 this.table.off('rowsUpdated', this._tableRowsUpdatedHandler);
33 this.table.off('rowsInserted', this._tableRowsInsertedHandler);
34 super._destroy();
35}
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}

Related snippets