@univerjs/ui v0.5.0-beta.1 • Docs
Class: ComponentManager
Constructors
new ComponentManager()
new ComponentManager(): ComponentManager
Returns
Defined in
submodules/univer/packages/ui/src/common/component-manager.ts:153
Methods
delete()
delete(name): void
Parameters
Parameter | Type |
---|---|
name | string |
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
Parameter | Type |
---|---|
name | string |
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
Parameter | Type |
---|---|
component | any |
Returns
undefined
| string
Defined in
submodules/univer/packages/ui/src/common/component-manager.ts:284
register()
register(
name,
component,
options?): IDisposable
Parameters
Parameter | Type |
---|---|
name | string |
component | any |
options ? | IComponentOptions |
Returns
Defined in
submodules/univer/packages/ui/src/common/component-manager.ts:265