Skip to content

PrimitiveColumnType

Built-in primitive column types with automatic formatting and editing support.

  • 'string' - Text content, default text input editor
  • 'number' - Numeric content, right-aligned, number input editor
  • 'date' - Date content, formatted display, date picker editor
  • 'boolean' - True/false, rendered as checkbox
  • 'select' - Dropdown selection from options array
type PrimitiveColumnType = "number" | "string" | "date" | "boolean" | "select"
columns: [
{ field: 'name', type: 'string' },
{ field: 'age', type: 'number' },
{ field: 'hireDate', type: 'date' },
{ field: 'active', type: 'boolean' },
{ field: 'department', type: 'select', options: [
{ label: 'Engineering', value: 'eng' },
{ label: 'Sales', value: 'sales' },
]},
]
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://raw.githubusercontent.com/OysteinAmundsen/toolbox/main/llms-full.txt