@yarcl/react
    Preparing search index...

    Type Alias TableColumnDefinition<Id>

    TableColumnDefinition: {
        hideable?: boolean;
        id: Id;
        label: string;
        width: number;
    } & (
        | { maxWidth: number; minWidth: number; resizable: true }
        | { maxWidth?: never; minWidth?: never; resizable?: false }
    )

    Column metadata shared by layout, resizing and visibility controls. Widths are CSS pixels.

    Type Parameters

    • Id extends string = string

    Type Declaration

    • Optionalhideable?: boolean

      Whether this column may be hidden.

      true
      
    • id: Id

      Stable identifier used by typed column state and renderers.

    • label: string

      Human-readable header and visibility label.

    • width: number

      Initial width in CSS pixels. Must be positive and finite.

    • { maxWidth: number; minWidth: number; resizable: true }
      • maxWidth: number

        Largest width in CSS pixels. Must be finite and greater than minWidth.

      • minWidth: number

        Smallest width in CSS pixels. Must be positive and finite.

      • resizable: true

        Enables pointer and keyboard resizing.

    • { maxWidth?: never; minWidth?: never; resizable?: false }
      • OptionalmaxWidth?: never

        Only used by resizable columns.

      • OptionalminWidth?: never

        Only used by resizable columns.

      • Optionalresizable?: false

        Leaves the width fixed until changed through column state.

        false