HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/appointmentbook.me/wp-content/plugins/booknetic/app/Backend/Base/assets/js/table.js
//New datatable library to reduce boilerplate code.
//This library should store all the states and actions related to a datatable. Which includes: searching, filtering, ordering, pagination and exportation.
//As well as rendering the HTML content of the table. Some components such as export button can be defined outside this library to enable greater flexibility.
//Components at the time: Search Input, Advanced Filter Modal, Date Filter modal, Export Button
class Table {
    dataTable;
    endpoint;
    params = {
        currentPage: 0,
        orderBy: null,
        searchKey: "",
        sort: "desc",
        dateFilter: {
            type: "today",
            from: "",
            to: "",
        }
    }

    constructor(container) {
    }

    load() {
    }

    draw() {
    }

    export() {
    }
}