GitHub

Products DataTable

Complete product management datatable with server-side search (HTMX), server-side pagination, bulk actions (delete, change status), table/card view toggle, column visibility, sorting, inline edit (side sheet), and delete confirmation (modal). A single, fully interactive example.

Full Products DataTable

Preview
SKU Name Category Price Stock Status Actions
PRD-001
Wireless HeadphonesBluetooth 5.0
Electronics $79.99 142 Active
PRD-002
Cotton T-ShirtOrganic cotton
Clothing $24.50 389 Active
PRD-003
Organic Green Tea100 bags
Food & Beverage $12.99 56 Draft
PRD-004
Smart Watch ProGPS + LTE
Electronics $299.00 18 Active
PRD-005
Ceramic Plant PotMedium, white
Home & Garden $34.00 0 Archived

Edit Product

Features Demonstrated

search Server-side search with HTMX, debounced 300ms
filters Status and category dropdowns with HTMX triggers
view toggle Switch between table rows and card grid layout
columns Show/hide columns via dropdown checkboxes
bulk select Select all / individual rows with checkbox
bulk actions Delete multiple or change status in batch
sorting Click column headers to sort asc/desc via HTMX
pagination Server-side pagination with per-page selector
edit Right side sheet with product edit form
delete Confirmation modal before deleting a product
row actions Edit and delete buttons per row
export Export to CSV, Excel, or Print
import Import products from CSV or Excel file via modal
glass Glass morphism effect on the datatable container
responsive Mobile-optimized toolbar with flex-wrap and order

Components Used

datatable Container, header, toolbar, body, footer, bulk bar, view toggle, column toggle
sheet Right side sheet for product edit form (sheet-backdrop, side-sheet-right)
modal Delete confirmation dialog (modal-backdrop, modal, modal-body, modal-footer)
pagination Page navigation with prev/next and page numbers
dropdown Column visibility and export menus (native details/summary)
badge Status indicators (Active, Draft, Archived) and category tags
checkbox Row selection and column visibility toggles
input / select / textarea Search field, filter selects, and edit form fields