@univerjsuiindexclassesComponentmanager

@univerjs/ui v0.5.4


Class: ComponentManager

Defined in: submodules/univer/packages/ui/src/common/component-manager.ts:148

Constructors

new ComponentManager()

new ComponentManager(): ComponentManager

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

Returns

ComponentManager

Methods

delete()

delete(name): void

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

Parameters

ParameterType
namestring

Returns

void


get()

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

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

Parameters

ParameterType
namestring

Returns

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


getKey()

getKey(component): undefined | string

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

Parameters

ParameterType
componentany

Returns

undefined | string


register()

register(
   name, 
   component, 
   options?): IDisposable

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

Parameters

ParameterType
namestring
componentany
options?IComponentOptions

Returns

IDisposable