@univerjsuiindexclassesComponentmanager

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


Class: ComponentManager

Constructors

new ComponentManager()

new ComponentManager(): ComponentManager

Returns

ComponentManager

Defined in

submodules/univer/packages/ui/src/common/component-manager.ts:153

Methods

delete()

delete(name): void

Parameters

ParameterType
namestring

Returns

void

Defined in

submodules/univer/packages/ui/src/common/component-manager.ts:310


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

submodules/univer/packages/ui/src/common/component-manager.ts:288


getKey()

getKey(component): undefined | string

Parameters

ParameterType
componentany

Returns

undefined | string

Defined in

submodules/univer/packages/ui/src/common/component-manager.ts:284


register()

register(
   name, 
   component, 
   options?): IDisposable

Parameters

ParameterType
namestring
componentany
options?IComponentOptions

Returns

IDisposable

Defined in

submodules/univer/packages/ui/src/common/component-manager.ts:265