On document.ready, data is fetched from products.json. Table headers and rows are rendered dynamically to support new columns without rewriting the HTML.
initDataTable(selector, options): Core function to initialize the DataTable with optional features like column filters, column hiding, tooltips, and column reordering.saveCustomView(name): Stores user's custom layout (hidden columns, filter values, column order) in localStorage.applyCustomView(name): Rehydrates a saved view and reapplies column state, filters, and order.updateViewSelector(): Populates view dropdown with all saved custom views.Filters, column visibility, theme, and reordering are stored in localStorage using unique keys per table.