API Reference
@univerjs
@univerjs/core
interfaces
Imulticommand

@univerjs/core v0.1.17Docs


Interface: IMultiCommand<P, R>

Extends

Type Parameters

Type ParameterDefault type
P extends objectobject
Rboolean

Properties

PropertyModifierTypeDescriptionInherited fromDefined in
idreadonlystring${businessName}.${type}.${name}ICommand.idsubmodules/univer/packages/core/src/services/command/command.service.ts:40 (opens in a new tab)
multipublictrue--submodules/univer/packages/core/src/services/command/command.service.ts:55 (opens in a new tab)
namepublicstring--submodules/univer/packages/core/src/services/command/command.service.ts:54 (opens in a new tab)
onDispose?public() => voidWhen this command is unregistered, this function would be called. DeprecatedICommand.onDisposesubmodules/univer/packages/core/src/services/command/command.service.ts:50 (opens in a new tab)
preconditions?public(contextService: IContextService) => boolean--submodules/univer/packages/core/src/services/command/command.service.ts:58 (opens in a new tab)
prioritypublicnumber--submodules/univer/packages/core/src/services/command/command.service.ts:56 (opens in a new tab)
typereadonlyCommandType-ICommand.typesubmodules/univer/packages/core/src/services/command/command.service.ts:41 (opens in a new tab)

Methods

handler()

handler(
   accessor, 
   params?, 
options?): R | Promise<R>

Parameters

ParameterType
accessorIAccessor
params?P
options?IExecutionOptions

Returns

R | Promise<R>

Inherited from

ICommand.handler

Defined in

submodules/univer/packages/core/src/services/command/command.service.ts:43 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.