@univerjs/ui v0.5.0-beta.1 • Docs
Interface: ILayoutService
Properties
Property | Modifier | Type | Defined in |
---|---|---|---|
isFocused | readonly | boolean | submodules/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
Parameter | Type |
---|---|
element | HTMLElement |
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
Parameter | Type |
---|---|
container | HTMLElement |
Returns
Defined in
submodules/univer/packages/ui/src/services/layout/layout.service.ts:48
registerContentElement()
registerContentElement(container): IDisposable
Register a content element.
Parameters
Parameter | Type |
---|---|
container | HTMLElement |
Returns
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
Parameter | Type |
---|---|
type | UniverInstanceType |
handler | FocusHandlerFn |
Returns
Defined in
submodules/univer/packages/ui/src/services/layout/layout.service.ts:42
registerRootContainerElement()
registerRootContainerElement(container): IDisposable
Register the root container element.
Parameters
Parameter | Type |
---|---|
container | HTMLElement |
Returns
Defined in
submodules/univer/packages/ui/src/services/layout/layout.service.ts:44