Skip to content

ActionsService

service

Type: unknown

Default Value: inject(MatIconRegistry)

Conceals actions that are no longer needed or should not be available. This will remove the actions from the registered actions list.

concealActions(actionIDs: string[]): void
NameTypeDescription
actionIDsstring[]
getActionById(id: string, context?: ActionContext): Action | undefined
NameTypeDescription
idstring
contextActionContext

Returns all actions that are executable for the given selection.

getActions(selection: DmsObject[], options?: ActionOptions): Observable<Action[]>
NameTypeDescription
selectionDmsObject[]
optionsActionOptions
getActionsById(ids: string[], context?: ActionContext): Action[]
NameTypeDescription
idsstring[]
contextActionContext
getActionsForType(objectTypeId: string, context?: ActionContext): Action[]
NameTypeDescription
objectTypeIdstring
contextActionContext

Get all available actions. This includes the default actions and all registered actions but without checking if they are executable.

getAvailableActions(context?: ActionContext): Action[]
NameTypeDescription
contextActionContext
openContextMenu(actions: Signal<Action[]>, callback: function, overlayOrigin: literal type): void
NameTypeDescription
actionsSignal<Action[]>
callbackfunction
overlayOriginliteral type

Registers actions that can be used in the application. class that extends ActionClass

registerActions(a: literal type[]): void
NameTypeDescription
aliteral type[]

Registers a set of default actions that are commonly used in the application. These actions include delete, download, copy and cut. This method can be called during the initialization of the application to ensure that these actions are available for use.

registerDefaultActions(): void