feat(toolbar-batch-actions): add active prop to show toolbar (#1440)

Closes #1438
This commit is contained in:
naegelin 2022-08-12 17:01:58 +02:00 committed by GitHub
commit bc58c7b029
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 30 additions and 5 deletions

View file

@ -8,6 +8,12 @@ export interface ToolbarBatchActionsProps
* @default (totalSelected) => `${totalSelected} item${totalSelected === 1 ? "" : "s"} selected`
*/
formatTotalSelected?: (totalSelected: number) => string;
/**
* Set to `true` to show the toolbar regardless of row selection
* @default false
*/
active?: boolean;
}
export default class ToolbarBatchActions extends SvelteComponentTyped<