import { type ITableAction } from './dees-table.js'; import * as plugins from './00plugins.js'; import { html, css, cssManager } from '@design.estate/dees-element'; interface ITableDemoData { date: string; amount: string; description: string; } export const demoFunc = () => html`
{ document.body.classList.toggle('bright'); document.body.classList.toggle('dark'); }}>Toggle Theme

Basic Table with Actions

A standard table with row actions, editable fields, and context menu support. Double-click on descriptions to edit. Grid lines are enabled by default.

Table with Vertical Lines

Enhanced column separation for better data tracking.

Table with Full Grid

Complete grid lines for maximum readability and structure.

Table with Horizontal Lines Only

Emphasis on row separation without column dividers.

Simple Table (No Grid)

Clean, minimal design without grid lines. Set showGrid to false to disable the default grid.

Table with Custom Display Function

Transform data for display using custom formatting.

({ Product: item.product, 'Units Sold': item.units.toLocaleString(), Revenue: '$' + item.revenue.toLocaleString(), Growth: (item.growth * 100).toFixed(1) + '%', 'Q1 2024 Forecast': '$' + item.forecast.toLocaleString() })} dataName="products" >

Empty Table State

How the table looks when no data is available.

`;