Files
Umbraco-CMS/src/Umbraco.Web.UI.Client/libs/entity-action/entity-bulk-action.ts
Mads Rasmussen 70c2f70420 Chore: Eslint rule to enforce element suffix (#625)
* add eslint rule to enforce element suffix on elements

* remove fixer

* rename first round of elements

* add element to element class name

* add element suffix

* rename element

* add element to UmbControllerHost instead of interface

* update imports after merge

* remove fixable flag

* fix after merge
2023-03-29 17:56:39 +02:00

21 lines
681 B
TypeScript

import { UmbAction, UmbActionBase } from './action';
import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
export interface UmbEntityBulkAction<RepositoryType = unknown> extends UmbAction<RepositoryType> {
selection: Array<string>;
setSelection(selection: Array<string>): void;
}
export class UmbEntityBulkActionBase<RepositoryType = unknown> extends UmbActionBase<RepositoryType> {
selection: Array<string>;
constructor(host: UmbControllerHostElement, repositoryAlias: string, selection: Array<string>) {
super(host, repositoryAlias);
this.selection = selection;
}
setSelection(selection: Array<string>) {
this.selection = selection;
}
}