Every line of 'clear datatable jquery' 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.
35 clear() { 36 this.table.DataTable().clear(); 37 }
204 function clearTable() { 205 $(".table-emo > tbody").html(""); 206 }
64 clear() { 65 this.listbox.clear(); 66 return this; 67 }
118 clear(){ 119 jQuery(this.container.node()).pivotUI([], null, true) 120 }
86 private clear(table: string): void { 87 const modalContent = this.getModalBody(); 88 const executeToken = this.getModuleContent().data('clear-tables-clear-token'); 89 (new AjaxRequest(Router.getUrl())) 90 .post({ 91 install: { 92 action: 'clearTablesClear', 93 token: executeToken, 94 table: table, 95 }, 96 }) 97 .then( 98 async (response: AjaxResponse): Promise => { 99 const data = await response.resolve(); 100 if (data.success === true && Array.isArray(data.status)) { 101 data.status.forEach((element: any): void => { 102 Notification.success(element.title, element.message); 103 }); 104 } else { 105 Notification.error('Something went wrong', 'The request was not processed successfully. Please check the browser\'s console and TYPO3\'s log.'); 106 } 107 this.getStats(); 108 }, 109 (error: AjaxResponse): void => { 110 Router.handleAjaxError(error, modalContent); 111 } 112 ); 113 }
163 function reloadTable() { 164 $("#libraryTable").DataTable().ajax.reload(); 165 }
207 function setupDataTable() { 208 var tableOptions; 209 tableOptions = { 210 "bJQueryUI" : true, 211 "sPaginationType" : "full_numbers", 212 "aaData" : [], 213 "aoColumns" : [ { 214 "sTitle" : "Parameter", 215 "sType" : "String", 216 "mData" : "name", 217 "mRender": function(data, type, full) { 218 return data; 219 } 220 }, { 221 "sTitle" : "Value", 222 "sType" : "Numeric", 223 "mData" : "value", 224 "mRender": function(data, type, full) { 225 return data; 226 } 227 }, { 228 "sTitle" : "Received Time", 229 "mData" : "receivedTime", 230 "mRender": function(data, type, full) { 231 return new Date(new Number(data)); 232 }, 233 "asSorting" : [ "desc" ] 234 } ], 235 "aaSorting" : [ [ 2, "desc" ] ] 236 }; 237 238 table = $("#tmTable").dataTable(tableOptions); 239 }
61 function initDataTables() { 62 $('#personal').dataTable({ 63 "sDom": 'rt<"bottom"><"clear">', 64 "aaSorting": [], 65 "bPaginate": false, 66 "bSort": true 67 }); 68 }
91 function clearHighlights(table){ 92 for (var span of table.querySelectorAll("span.configuration-highlight")) { 93 var parent = span.parentNode; 94 var prev = span.previousSibling; 95 var next = span.nextSibling; 96 var target; 97 if(prev && prev.nodeType == Node.TEXT_NODE){ 98 target = prev; 99 } 100 var text = span.childNodes.item(0).nodeValue; 101 if(next && next.nodeType == Node.TEXT_NODE){ 102 text += next.nodeValue; 103 parent.removeChild(next); 104 } 105 if(target){ 106 target.nodeValue += text; 107 }else{ 108 target = document.createTextNode(text); 109 parent.insertBefore(target, span); 110 } 111 parent.removeChild(span); 112 } 113 }
2 function refresh(){ 3 var table = $('.table').DataTable(); 4 table.ajax.reload(null,false);// 刷新表格数据,分页信息不会重置 5 }