tuil
ReferenceComponentsTables

DataTableProps

DataTableProps component contract.

View rawEdit

Type

export interface DataTableProps<TData>
  extends CommonComponentProps,
    SlottedComponentProps<TableSlots> {
  readonly table: TanStackTable<TData>;
  readonly height?: number;
  readonly width?: number;
  readonly focusMode?: "row" | "cell";
  readonly frozenColumns?: number;
  readonly minColumnWidth?: number;
  readonly maxColumnWidth?: number;
  readonly staticLimit?: number;
  readonly onActivate?: (row: TData, columnId: string) => void | Promise<void>;
}

Members

MemberTypeRequiredDescriptionRelated types
tableTanStackTable<TData>YesThe table member uses the TanStackTable<TData> contract.
heightnumber | undefinedNoThe height member uses the number | undefined contract.
widthnumber | undefinedNoThe width member uses the number | undefined contract.
focusMode"row" | "cell" | undefinedNoThe focusMode member uses the "row" | "cell" | undefined contract.
frozenColumnsnumber | undefinedNoThe frozenColumns member uses the number | undefined contract.
minColumnWidthnumber | undefinedNoThe minColumnWidth member uses the number | undefined contract.
maxColumnWidthnumber | undefinedNoThe maxColumnWidth member uses the number | undefined contract.
staticLimitnumber | undefinedNoThe staticLimit member uses the number | undefined contract.
onActivate((row: TData, columnId: string) => void | Promise<void>) | undefinedNoThe onActivate member uses the ((row: TData, columnId: string) => void | Promise<void>) | undefined contract.
variantstring | undefinedNoThe variant member uses the string | undefined contract.
size"sm" | "md" | "lg" | undefinedNoThe size member uses the "sm" | "md" | "lg" | undefined contract.
unstyledboolean | undefinedNoThe unstyled member uses the boolean | undefined contract.
classNamestring | undefinedNoThe className member uses the string | undefined contract.
layoutPartial<Omit<LayoutNodeInput, "children" | "id" | "semantics">> | undefinedNoThe layout member uses the Partial<Omit<LayoutNodeInput, "children" | "id" | "semantics">> | undefined contract.
idstring | undefinedNoThe id member uses the string | undefined contract.
testIdstring | undefinedNoThe testId member uses the string | undefined contract.
roleSemanticRole | undefinedNoThe role member uses the SemanticRole | undefined contract.SemanticRole
labelstring | undefinedNoThe label member uses the string | undefined contract.
descriptionstring | undefinedNoThe description member uses the string | undefined contract.
disabledboolean | undefinedNoThe disabled member uses the boolean | undefined contract.
readOnlyboolean | undefinedNoThe readOnly member uses the boolean | undefined contract.
selectedboolean | undefinedNoThe selected member uses the boolean | undefined contract.
checkedboolean | undefinedNoThe checked member uses the boolean | undefined contract.
expandedboolean | undefinedNoThe expanded member uses the boolean | undefined contract.
valueTextstring | undefinedNoThe valueText member uses the string | undefined contract.
slotsPartial<SlotComponents<&#123; root: import("ink").BoxProps; header: import("ink").BoxProps; headerCell: import("ink").TextProps; body: import("ink").BoxProps; row: import("ink").BoxProps; cell: import("ink").TextProps; overflow: import("ink").TextProps; empty: import("ink").TextProps; &#125;>> | undefinedNoThe slots member uses the Partial<SlotComponents<&#123; root: import("ink").BoxProps; header: import("ink").BoxProps; headerCell: import("ink").TextProps; body: import("ink").BoxProps; row: import("ink").BoxProps; cell: import("ink").TextProps; overflow: import("ink").TextProps; empty: import("ink").TextProps; &#125;>> | undefined contract.BoxProps, SlotComponents, TextProps
slotPropsPartial<SlotProps<&#123; root: import("ink").BoxProps; header: import("ink").BoxProps; headerCell: import("ink").TextProps; body: import("ink").BoxProps; row: import("ink").BoxProps; cell: import("ink").TextProps; overflow: import("ink").TextProps; empty: import("ink").TextProps; &#125;, object>> | undefinedNoThe slotProps member uses the Partial<SlotProps<&#123; root: import("ink").BoxProps; header: import("ink").BoxProps; headerCell: import("ink").TextProps; body: import("ink").BoxProps; row: import("ink").BoxProps; cell: import("ink").TextProps; overflow: import("ink").TextProps; empty: import("ink").TextProps; &#125;, object>> | undefined contract.BoxProps, SlotProps, TextProps

Source

View the secondary source reference

On this page