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


Interface: ILayoutService

Properties

PropertyModifierTypeDefined in
isFocusedreadonlybooleansubmodules/univer/packages/ui/src/services/layout/layout.service.ts:35

Accessors

rootContainerElement

Get Signature

get rootContainerElement(): Nullable<HTMLElement>
Returns

Nullable<HTMLElement>

Defined in

submodules/univer/packages/ui/src/services/layout/layout.service.ts:37

Methods

checkContentIsFocused()

checkContentIsFocused(): boolean

Returns

boolean

Defined in

submodules/univer/packages/ui/src/services/layout/layout.service.ts:53


checkElementInCurrentContainers()

checkElementInCurrentContainers(element): boolean

Parameters

ParameterType
elementHTMLElement

Returns

boolean

Defined in

submodules/univer/packages/ui/src/services/layout/layout.service.ts:52


focus()

focus(): void

Re-focus the currently focused Univer business instance.

Returns

void

Defined in

submodules/univer/packages/ui/src/services/layout/layout.service.ts:39


getContentElement()

getContentElement(): HTMLElement

Returns

HTMLElement

Defined in

submodules/univer/packages/ui/src/services/layout/layout.service.ts:50


registerContainerElement()

registerContainerElement(container): IDisposable

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

Parameters

ParameterType
containerHTMLElement

Returns

IDisposable

Defined in

submodules/univer/packages/ui/src/services/layout/layout.service.ts:48


registerContentElement()

registerContentElement(container): IDisposable

Register a content element.

Parameters

ParameterType
containerHTMLElement

Returns

IDisposable

Defined in

submodules/univer/packages/ui/src/services/layout/layout.service.ts:46


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

submodules/univer/packages/ui/src/services/layout/layout.service.ts:42


registerRootContainerElement()

registerRootContainerElement(container): IDisposable

Register the root container element.

Parameters

ParameterType
containerHTMLElement

Returns

IDisposable

Defined in

submodules/univer/packages/ui/src/services/layout/layout.service.ts:44