Column Order

The column ordering feature provides methods and state for managing the order of columns in the table. These properties are available on the table instance when using the column ordering feature. See the column ordering guide for usage examples and configuration details.

PropType
Resets the columnOrder state to initialState.columnOrder, or true can be passed to force a default blank state reset to [].
      (
      defaultState?: boolean,
      ) => void
      Sets or updates the state.columnOrder state.
          (
          updater:
          | T
          | ((old: T) => T),
          ) => void
          Type
          (
          defaultState?: boolean,
          ) => void
          Description
          Resets the columnOrder state to initialState.columnOrder, or true can be passed to force a default blank state reset to [].
              Type
              (
              updater:
              | T
              | ((old: T) => T),
              ) => void
              Description
              Sets or updates the state.columnOrder state.