* 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
21 lines
681 B
TypeScript
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;
|
|
}
|
|
}
|