<dataTable> Component
The <dataTable>
component presents structured tabular data using a columns-first approach, similar to modern tools like Airtable or Notion. Columns are defined using <dataColumn>
elements, and rows are automatically generated based on the data source.
<dataTable>
component presents structured tabular data using a columns-first approach, similar to modern tools like Airtable or Notion. Columns are defined using <dataColumn>
elements, and rows are automatically generated based on the data source.🛠Attributes
Attribute
Type
Required
Description
source
string
No
Global data source path (can be overridden per column)
sortable
boolean
No
Enable sort interactions globally
filterable
boolean
No
Enable filter UI globally
paginate
boolean
No
Enable pagination UI
pageSize
number
No
Items per page (default: 50)
ai-hint
string
No
Describes the type of data shown
✅ Allowed Content
<dataColumn>
elementsOptional
<columnGroup>
for grouping columnsOptional
<features>
for advanced functionality
💡 Examples
Basic Table
Advanced Table with Features
🧩 AI Interpretation Guidelines
Generate table structure based on column definitions
Apply data types and formatting per column
Implement sorting, filtering, and pagination as specified
Handle data binding and transformations
Apply column grouping and advanced features
Generate appropriate UI components for the target framework
Last updated