@univerjs/ui v0.4.2 • Docs
Class: ComponentManager
Constructors
new ComponentManager()
new ComponentManager(): ComponentManager
Returns
Defined in
packages/ui/src/common/component-manager.ts:153 (opens in a new tab)
Methods
delete()
delete(name): void
Parameters
Parameter | Type |
---|---|
name | string |
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
Parameter | Type |
---|---|
name | string |
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
Parameter | Type |
---|---|
component | any |
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
Parameter | Type |
---|---|
name | string |
component | any |
options ? | IComponentOptions |
Returns
Defined in
packages/ui/src/common/component-manager.ts:265 (opens in a new tab)