API Reference
@univerjs
@univerjs/ui
interfaces
Ilayoutservice

@univerjs/ui v0.4.2Docs


Interface: ILayoutService

Properties

PropertyModifierTypeDefined in
isFocusedreadonlybooleanpackages/ui/src/services/layout/layout.service.ts:35 (opens in a new tab)

Accessors

rootContainerElement

get rootContainerElement(): Nullable<HTMLElement>

Returns

Nullable<HTMLElement>

Defined in

packages/ui/src/services/layout/layout.service.ts:37 (opens in a new tab)

Methods

checkContentIsFocused()

checkContentIsFocused(): boolean

Returns

boolean

Defined in

packages/ui/src/services/layout/layout.service.ts:53 (opens in a new tab)


checkElementInCurrentContainers()

checkElementInCurrentContainers(element): boolean

Parameters

ParameterType
elementHTMLElement

Returns

boolean

Defined in

packages/ui/src/services/layout/layout.service.ts:52 (opens in a new tab)


focus()

focus(): void

Re-focus the currently focused Univer business instance.

Returns

void

Defined in

packages/ui/src/services/layout/layout.service.ts:39 (opens in a new tab)


getContentElement()

getContentElement(): HTMLElement

Returns

HTMLElement

Defined in

packages/ui/src/services/layout/layout.service.ts:50 (opens in a new tab)


registerContainerElement()

registerContainerElement(container): IDisposable

Register an element as a container, especially floating components like Dialogs and Notifications.

Parameters

ParameterType
containerHTMLElement

Returns

IDisposable

Defined in

packages/ui/src/services/layout/layout.service.ts:48 (opens in a new tab)


registerContentElement()

registerContentElement(container): IDisposable

Register a content element.

Parameters

ParameterType
containerHTMLElement

Returns

IDisposable

Defined in

packages/ui/src/services/layout/layout.service.ts:46 (opens in a new tab)


registerFocusHandler()

registerFocusHandler(type, handler): IDisposable

Register a focus handler to focus on certain type of Univer unit.

Parameters

ParameterType
typeUniverInstanceType
handlerFocusHandlerFn

Returns

IDisposable

Defined in

packages/ui/src/services/layout/layout.service.ts:42 (opens in a new tab)


registerRootContainerElement()

registerRootContainerElement(container): IDisposable

Register the root container element.

Parameters

ParameterType
containerHTMLElement

Returns

IDisposable

Defined in

packages/ui/src/services/layout/layout.service.ts:44 (opens in a new tab)


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