Skip to main content

TableOptions_ColumnPinning

还没翻译译自英文(tanstack.com)本页 11 段都还没译

Defined in: features/column-pinning/columnPinningFeature.types.ts:26

Properties

enableColumnPinning?

optional enableColumnPinning?: boolean;

Defined in: features/column-pinning/columnPinningFeature.types.ts:37

Allows columns to be pinned into logical start and end regions.

In LTR languages/layouts, start usually corresponds to left and end to right. In RTL languages/layouts, start usually corresponds to right and end to left.

Defaults to true; column-level enablePinning can still opt individual columns out.


onColumnPinningChange?

optional onColumnPinningChange?: OnChangeFn<ColumnPinningState>;

Defined in: features/column-pinning/columnPinningFeature.types.ts:43

Called with an updater when column pinning state changes. Pair this with state.columnPinning when using external state; external atoms can own the slice without this callback.