Bulk select

The bulk select provides a way of selecting data records in batches. You can select all data at once, all data on current page or deselect all.

Examples

Basic paginated bulk select

To display a default bulk select, you need to pass number of selected items using selectedCount, the onSelect callback accepting bulk select option values and selecting data accordingly, pageCount defining number of items on the current page, pageSelected and pagePartiallySelected boolean flags to define the state os the bulk select checkbox..

Bulk select with all option

To display an option for selecting all data at once, pass canSelectAll flag together with totalCount of data entries. You can also remove the page select option by setting isDataPaginated to false,

2 selected

Props

BulkSelect

extends DropdownProps
*required
NameTypeDefaultDescription
onSelectrequired(value: BulkSelectValue) => voidCallback called on item select
canSelectAllbooleanIndicates whether "Select all" option should be available
classNamestringBulkSelect className
isDataPaginatedbooleantrueIndicates whether selectable items are paginated
menuToggleCheckboxPropsOmit<MenuToggleCheckboxProps, 'onChange' | 'isChecked' | 'instance' | 'ref'>Additional props for MenuToggleCheckbox
ouiaIdstring'BulkSelect'Custom OUIA ID
pageCountnumberNumber of entries present in current page
pagePartiallySelectedbooleanIndicates if ONLY some current page items are selected
pageSelectedbooleanIndicates if ALL current page items are selected
selectedCountnumber0Number of selected entries
totalCountnumber0Number of all entries