API Reference
@univerjs
@univerjs/ui
classes
Componentmanager

@univerjs/ui v0.4.2Docs


Class: ComponentManager

Constructors

new ComponentManager()

new ComponentManager(): ComponentManager

Returns

ComponentManager

Defined in

packages/ui/src/common/component-manager.ts:153 (opens in a new tab)

Methods

delete()

delete(name): void

Parameters

ParameterType
namestring

Returns

void

Defined in

packages/ui/src/common/component-manager.ts:310 (opens in a new tab)


get()

get(name): undefined | ForwardRefExoticComponent<any> | (props) => FunctionComponentElement<{
  component: any;
  props: Record<string, any>;
}>

Parameters

ParameterType
namestring

Returns

undefined | ForwardRefExoticComponent<any> | (props) => FunctionComponentElement<{ component: any; props: Record<string, any>; }>

Defined in

packages/ui/src/common/component-manager.ts:288 (opens in a new tab)


getKey()

getKey(component): undefined | string

Parameters

ParameterType
componentany

Returns

undefined | string

Defined in

packages/ui/src/common/component-manager.ts:284 (opens in a new tab)


register()

register(
   name, 
   component, 
   options?): IDisposable

Parameters

ParameterType
namestring
componentany
options?IComponentOptions

Returns

IDisposable

Defined in

packages/ui/src/common/component-manager.ts:265 (opens in a new tab)


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