diff --git a/JDataTable.js b/JDataTable.js index 0e54259..64805a1 100644 --- a/JDataTable.js +++ b/JDataTable.js @@ -17,6 +17,7 @@ class TableData { enable: false, listColumn: [], }, + positionCaption: "top" }; constructor(tableId, config) { @@ -35,19 +36,20 @@ class TableData { ) { this.config.order = null; this.updateConfig(this.config); + // this.attachSortEventListeners(".ri-expand-up-down-fill"); } else { if (this.config.order === null) { this.config.order = { [`order_by_${column}`]: "desc", }; this.updateConfig(this.config); - this.attachSortEventListeners(".ri-arrow-down-s-fill"); + // this.attachSortEventListeners(".ri-arrow-down-s-fill"); } else { this.config.order = { [`order_by_${column}`]: "asc", }; this.updateConfig(this.config); - this.attachSortEventListeners(".ri-arrow-up-s-fill"); + // this.attachSortEventListeners(".ri-arrow-up-s-fill"); } } } @@ -188,20 +190,20 @@ class TableData { }); html += ""; // Initial pagination use 'data.links' - let htmlPagination = `
A library used to initialize a basic data table. Includes the main components of a data table such as: sorting, per page, pagination, table. Supports additional configuration of search and filtering features.
+A library used to initialize a basic data table. Includes the main components of a data table such as: + sorting, per page, pagination, table. Supports additional configuration of search and filtering features. +