Toggles the selection of a given row and updates the selection state.

  • Type Parameters

    • RowData extends IRowData = any

      The type of data in the row.

    Parameters

    • row: RowData

      The row data to toggle the selection for.

    Returns (radio?: boolean) => (e: any) => void

    A function that takes an event and toggles the selection for the row.