Column Pinning

The column pinning feature provides methods and state for pinning columns to the left or right side of the table. These properties are available on the table instance when using the column pinning feature. See the column pinning guide for usage examples and configuration details.

PropType
Returns all center pinned (unpinned) leaf columns.
      () => Column<
      TData,
      unknown,
      ColumnMeta
      >[]
      Returns whether any columns are pinned. Optionally specify to only check for pinned columns in either the left or right position.
          (
          position?:
          | false
          | 'left'
          | 'right',
          ) => boolean
          Returns all left pinned leaf columns.
              () => Column<
              TData,
              unknown,
              ColumnMeta
              >[]
              Returns all right pinned leaf columns.
                  () => Column<
                  TData,
                  unknown,
                  ColumnMeta
                  >[]
                  Resets the columnPinning state to initialState.columnPinning, or true can be passed to force a default blank state reset to

                  { left: [], right: [], }

                  .
                      (
                      defaultState?: boolean,
                      ) => void
                      Sets or updates the state.columnPinning state.
                          (
                          updater: Updater<ColumnPinningState>,
                          ) => void
                          Type
                          () => Column<
                          TData,
                          unknown,
                          ColumnMeta
                          >[]
                          Description
                          Returns all center pinned (unpinned) leaf columns.
                              Type
                              (
                              position?:
                              | false
                              | 'left'
                              | 'right',
                              ) => boolean
                              Description
                              Returns whether any columns are pinned. Optionally specify to only check for pinned columns in either the left or right position.
                                  Type
                                  () => Column<
                                  TData,
                                  unknown,
                                  ColumnMeta
                                  >[]
                                  Description
                                  Returns all left pinned leaf columns.
                                      Type
                                      () => Column<
                                      TData,
                                      unknown,
                                      ColumnMeta
                                      >[]
                                      Description
                                      Returns all right pinned leaf columns.
                                          Type
                                          (
                                          defaultState?: boolean,
                                          ) => void
                                          Description
                                          Resets the columnPinning state to initialState.columnPinning, or true can be passed to force a default blank state reset to

                                          { left: [], right: [], }

                                          .
                                              Type
                                              (
                                              updater: Updater<ColumnPinningState>,
                                              ) => void
                                              Description
                                              Sets or updates the state.columnPinning state.