vue
<NbBatchActions
:count="selected.length"
:items="batchActions"
@cancel="selected = []"
/>Two places it sits
variant="overlay"(the default) covers a toolbar strip. The host is the containing block (position: relative), and the bar fills it: its height is the strip's, so nothing below moves when selection starts.NbDataTableuses it for#batch-actions.variant="floating"is a pill at the foot of a free layout, where there is no strip to cover.NbBoarduses it.
The rules it follows
- The count comes first, then the actions, then Cancel on the far right.
- The bar is as tall as the toolbar it replaces, and its buttons are too: it gives its
sizeto every button inside it, slotted ones included. - While it is up, the row actions rest.
NbDataTabledisables them, so a row cannot be acted on behind a selection. - On a phone
itemsfold into an overflow menu and Cancel becomes anxicon, so the bar stays one row.