@univerjsuiindexclassesDesktopmessageservice

@univerjs/ui v0.5.0-beta.1Docs


Class: DesktopMessageService

Implements

Constructors

new DesktopMessageService()

new DesktopMessageService(): DesktopMessageService

Returns

DesktopMessageService

Properties

PropertyModifierTypeDefined in
_message?protectedMessagesubmodules/univer/packages/ui/src/services/message/desktop-message.service.ts:28
_portalContainerprotectedundefined | HTMLElementsubmodules/univer/packages/ui/src/services/message/desktop-message.service.ts:26

Methods

dispose()

dispose(): void

Returns

void

Implementation of

IDisposable.dispose

Defined in

submodules/univer/packages/ui/src/services/message/desktop-message.service.ts:30


getContainer()

getContainer(): undefined | HTMLElement

Returns

undefined | HTMLElement

Implementation of

IMessageService.getContainer

Defined in

submodules/univer/packages/ui/src/services/message/desktop-message.service.ts:43


setContainer()

setContainer(container): void

Parameters

ParameterType
containerHTMLElement

Returns

void

Implementation of

IMessageService.setContainer

Defined in

submodules/univer/packages/ui/src/services/message/desktop-message.service.ts:34


show()

show(options): IDisposable

Parameters

ParameterType
optionsIMessageOptions & Omit<IMessageProps, "key">

Returns

IDisposable

Implementation of

IMessageService.show

Defined in

submodules/univer/packages/ui/src/services/message/desktop-message.service.ts:47