interface GridMultiSelectionApi {
    selectRowRange: ((range: {
        endId: GridRowId;
        startId: GridRowId;
    }, isSelected?: boolean, resetSelection?: boolean) => void);
    selectRows: ((ids: GridRowId[], isSelected?: boolean, resetSelection?: boolean) => void);
}

Properties

selectRowRange: ((range: {
    endId: GridRowId;
    startId: GridRowId;
}, isSelected?: boolean, resetSelection?: boolean) => void)

Change the selection state of all the selectable rows in a range.

Type declaration

    • (range, isSelected?, resetSelection?): void
    • Parameters

      • range: {
            endId: GridRowId;
            startId: GridRowId;
        }

        The range of rows to select.

      • OptionalisSelected: boolean

        The new selection state. Default is true.

      • OptionalresetSelection: boolean

        Whether to reset the selected rows outside of the range or not. Default is false.

      Returns void

selectRows: ((ids: GridRowId[], isSelected?: boolean, resetSelection?: boolean) => void)

Change the selection state of multiple rows.

Type declaration

    • (ids, isSelected?, resetSelection?): void
    • Parameters

      • ids: GridRowId[]

        The row ids.

      • OptionalisSelected: boolean

        The new selection state. Default is true.

      • OptionalresetSelection: boolean

        Whether to reset the already selected rows or not. Default is false.

      Returns void