API Reference
@univerjs
@univerjs/ui
classes
Desktopmessageservice

@univerjs/ui v0.4.2Docs


Class: DesktopMessageService

Implements

Constructors

new DesktopMessageService()

new DesktopMessageService(): DesktopMessageService

Returns

DesktopMessageService

Properties

PropertyModifierTypeDefined in
_message?protectedMessagepackages/ui/src/services/message/desktop-message.service.ts:28 (opens in a new tab)
_portalContainerprotectedundefined | HTMLElementpackages/ui/src/services/message/desktop-message.service.ts:26 (opens in a new tab)

Methods

dispose()

dispose(): void

Returns

void

Implementation of

IDisposable.dispose

Defined in

packages/ui/src/services/message/desktop-message.service.ts:30 (opens in a new tab)


getContainer()

getContainer(): undefined | HTMLElement

Returns

undefined | HTMLElement

Implementation of

IMessageService.getContainer

Defined in

packages/ui/src/services/message/desktop-message.service.ts:43 (opens in a new tab)


setContainer()

setContainer(container): void

Parameters

ParameterType
containerHTMLElement

Returns

void

Implementation of

IMessageService.setContainer

Defined in

packages/ui/src/services/message/desktop-message.service.ts:34 (opens in a new tab)


show()

show(options): IDisposable

Parameters

ParameterType
optionsIMessageOptions & Omit<IMessageProps, "key">

Returns

IDisposable

Implementation of

IMessageService.show

Defined in

packages/ui/src/services/message/desktop-message.service.ts:47 (opens in a new tab)


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