Docs
/Options
API Options
const instance = createTableInstance(table, options)Parameters
table: an instance of core table, used to define the structure.options: an object of options for this table.
Return Values
instance: a reactive instance of solid table which can be used to render the values
Options
columns: Array<ColumnDef<_>>: The core columns configuration object for the entire table.data: Array<any>: The data array that you want to display on the table.state?: Partial<TableState>initialState?: Partial<TableState>pagination: PaginationStatepageSize: number = 10: Determines the amount of rows on any given pagepageIndex: number = 0: The index of the page that should be displayedpageCount: number = -1: Set to -1 if you don't know or don't want to present the number of pages available
sorting?: Array<ColumnSort>id: stringdesc: boolean
grouping: Array<string>columnFilters?: ColumnFiltersStateglobalFilter?: anycolumnOrder?: ColumnOrderStatecolumnPinning?: ColumnPinningStatecolumnVisibility?: ColumnVisibilityStatecolumnSizing?: ColumnSizing
onStateChange?: (updater: Updater<TableState>) => void;debugAll?: booleandebugTable?: booleandebugHeaders?: booleandebugColumns?: booleandebugRows?: booleandefaultColumn?: Partial<ColumnDef<_>>getSubRows?: (originalRow: TGenerics['Row'], index: number) => Array<TGenerics['Row']>getRowId?: (originalRow: TGenerics['Row'], index: number, parent?: Row<TGenerics>) => stringautoResetAll?: boolean