@univerjs/ui v0.4.2 • Docs
Interface: ILayoutService
Properties
Property | Modifier | Type | Defined in |
---|---|---|---|
isFocused | readonly | boolean | packages/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
Parameter | Type |
---|---|
element | HTMLElement |
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
Parameter | Type |
---|---|
container | HTMLElement |
Returns
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
Parameter | Type |
---|---|
container | HTMLElement |
Returns
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
Parameter | Type |
---|---|
type | UniverInstanceType |
handler | FocusHandlerFn |
Returns
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
Parameter | Type |
---|---|
container | HTMLElement |
Returns
Defined in
packages/ui/src/services/layout/layout.service.ts:44 (opens in a new tab)