Row Selection

The row selection feature provides methods and state for selecting and managing selected rows in the table. These properties are available on the table instance when using the row selection feature. See the row selection guide for usage examples and configuration details.

PropType
Returns the row model of all rows that are selected after filtering has been applied.
      () => {
      flatRows: Row[]
      rows: Row[]
      rowsById: Record
      }
      Returns the row model of all rows that are selected after grouping has been applied.
          () => {
          flatRows: Row[]
          rows: Row[]
          rowsById: Record
          }
          Returns whether all rows on the current page are selected.
              () => boolean
              Returns whether all rows in the table are selected.
                  () => boolean
                  Returns whether any rows on the current page are selected.
                      () => boolean
                      Returns whether any rows in the table are selected.
                          () => boolean
                          Returns the core row model of all rows before row selection has been applied.
                              () => {
                              flatRows: Row[]
                              rows: Row[]
                              rowsById: Record
                              }
                              Returns the row model of all rows that are selected.
                                  () => {
                                  flatRows: Row[]
                                  rows: Row[]
                                  rowsById: Record
                                  }
                                  Returns a handler that can be used to toggle all rows on the current page.
                                      () => (
                                      event: unknown,
                                      ) => void
                                      Returns a handler that can be used to toggle all rows in the table.
                                          () => (
                                          event: unknown,
                                          ) => void
                                          Resets the rowSelection state to the initialState.rowSelection, or true can be passed to force a default blank state reset to {}.
                                              (
                                              defaultState?: boolean,
                                              ) => void
                                              Sets or updates the state.rowSelection state.
                                                  (
                                                  updater:
                                                  | T
                                                  | ((old: T) => T),
                                                  ) => void
                                                  Selects/deselects all rows on the current page.
                                                      (
                                                      value?: boolean,
                                                      ) => void
                                                      Selects/deselects all rows in the table.
                                                          (
                                                          value?: boolean,
                                                          ) => void
                                                          Type
                                                          () => {
                                                          flatRows: Row[]
                                                          rows: Row[]
                                                          rowsById: Record
                                                          }
                                                          Description
                                                          Returns the row model of all rows that are selected after filtering has been applied.
                                                              Type
                                                              () => {
                                                              flatRows: Row[]
                                                              rows: Row[]
                                                              rowsById: Record
                                                              }
                                                              Description
                                                              Returns the row model of all rows that are selected after grouping has been applied.
                                                                  Type
                                                                  () => boolean
                                                                  Description
                                                                  Returns whether all rows on the current page are selected.
                                                                      Type
                                                                      () => boolean
                                                                      Description
                                                                      Returns whether all rows in the table are selected.
                                                                          Type
                                                                          () => boolean
                                                                          Description
                                                                          Returns whether any rows on the current page are selected.
                                                                              Type
                                                                              () => boolean
                                                                              Description
                                                                              Returns whether any rows in the table are selected.
                                                                                  Type
                                                                                  () => {
                                                                                  flatRows: Row[]
                                                                                  rows: Row[]
                                                                                  rowsById: Record
                                                                                  }
                                                                                  Description
                                                                                  Returns the core row model of all rows before row selection has been applied.
                                                                                      Type
                                                                                      () => {
                                                                                      flatRows: Row[]
                                                                                      rows: Row[]
                                                                                      rowsById: Record
                                                                                      }
                                                                                      Description
                                                                                      Returns the row model of all rows that are selected.
                                                                                          Type
                                                                                          () => (
                                                                                          event: unknown,
                                                                                          ) => void
                                                                                          Description
                                                                                          Returns a handler that can be used to toggle all rows on the current page.
                                                                                              Type
                                                                                              () => (
                                                                                              event: unknown,
                                                                                              ) => void
                                                                                              Description
                                                                                              Returns a handler that can be used to toggle all rows in the table.
                                                                                                  Type
                                                                                                  (
                                                                                                  defaultState?: boolean,
                                                                                                  ) => void
                                                                                                  Description
                                                                                                  Resets the rowSelection state to the initialState.rowSelection, 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.rowSelection state.
                                                                                                          Type
                                                                                                          (
                                                                                                          value?: boolean,
                                                                                                          ) => void
                                                                                                          Description
                                                                                                          Selects/deselects all rows on the current page.
                                                                                                              Type
                                                                                                              (
                                                                                                              value?: boolean,
                                                                                                              ) => void
                                                                                                              Description
                                                                                                              Selects/deselects all rows in the table.