Hook for managing grid selection.

  • Parameters

    • Optional__namedParameters: Partial<IParams>

    Returns {
        deselectAll: () => void;
        gridProps: {
            onSelectedRows: (rowIds: string[]) => void;
            selectedRows: string[];
        };
        selectedRows: string[];
        setSelectedRows: any;
    }

    • An object containing the following properties:
    • selectedRows: Array of selected row IDs.
    • gridProps: Object with properties for grid selection:
      • selectedRows: Array of selected row IDs.
      • onSelectedRows: Function to handle selected row IDs.
    • deselectAll: Function to clear all selected rows.