Class Table<DataType>

Type Parameters

  • DataType = unknown

Hierarchy

  • Resource<Signature<DataType>>
    • Table

Constructors

  • Type Parameters

    • DataType = unknown

    Parameters

    • owner: unknown

    Returns Table<DataType>

Properties

#page?: number

Deprecated

this should be moved to a "pagination" plugin

[TABLE_KEY]: string = ...
args: {
    named: TableConfig<DataType>;
}

Type declaration

columns: MappedArray<Column<DataType>> = ...
defaultColumnConfig: {
    isVisible: boolean;
    minWidth: number;
} = DEFAULT_COLUMN_CONFIG

Type declaration

  • isVisible: boolean
  • minWidth: number
modifiers: {
    columnHeader: FunctionBasedModifier<{}>;
    container: FunctionBasedModifier<{}>;
} = ...

Collection of utility modifiers that are the result of composing modifiers from plugins.

Using this is optional, and you can "just" use modifiers from specific plugins in specific places if you wish -- but these exists as a "convenience".

These are all no-use, no-cost utilities

Type declaration

  • columnHeader: FunctionBasedModifier<{}>
  • container: FunctionBasedModifier<{}>
preferences: TablePreferences

Interact with, save, modify, etc the preferences for the table, plugins, columns, etc

rows: MappedArray<Row<DataType>> = ...
scrollContainerElement?: HTMLElement
scrollContainerHeight?: number
scrollContainerWidth?: number

Accessors

  • get plugins(): Plugin<unknown, unknown>[]
  • Private

    For all configured plugins, instantiates each one. If the plugins argument changes to the Table (either directly or through headlessTable, all state is lost and re-created)

    Returns Plugin<unknown, unknown>[]

Methods

Generated using TypeDoc