Class Table<DataType>

Type Parameters

  • DataType = unknown

Hierarchy

  • Resource<Signature<DataType>>
    • Table

Constructors

  • Type Parameters

    • DataType = unknown

    Parameters

    • owner: unknown

    Returns Table<DataType>

Properties

[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<{}>;
    row: 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<{}>
  • row: 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>[]
  • 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>[]

Methods

  • Get the active plugin instance for the given plugin class

    Type Parameters

    Parameters

    • klass: Class<Instance>

    Returns undefined | Instance

Generated using TypeDoc