Class: Registry
Constructors
new Registry()
new Registry(): Registry
Returns
Methods
registerAppBarAction()
registerAppBarAction(actionName: string, actionFunc: (...args: any[]) => ReactNode): void
Parameters
Parameter | Type |
---|---|
actionName | string |
actionFunc | (...args : any []) => ReactNode |
Returns
void
Deprecated
Registry.registerAppBarAction is deprecated. Please use registerAppBarAction.
Defined in
registerAppLogo()
registerAppLogo(logo: AppLogoType): void
Parameters
Parameter | Type |
---|---|
logo | AppLogoType |
Returns
void
Deprecated
Registry.registerAppLogo is deprecated. Please use registerAppLogo.
Defined in
registerClusterChooserComponent()
registerClusterChooserComponent(component: null | ComponentType<ClusterChooserProps>): void
Parameters
Parameter | Type |
---|---|
component | null | ComponentType <ClusterChooserProps > |
Returns
void
Deprecated
Registry.registerClusterChooserComponent is deprecated. Please use registerClusterChooser.
Defined in
registerDetailsViewHeaderAction()
registerDetailsViewHeaderAction(actionName: string, actionFunc: HeaderActionType): void
Parameters
Parameter | Type |
---|---|
actionName | string |
actionFunc | HeaderActionType |
Returns
void
Deprecated
Registry.registerDetailsViewHeaderAction is deprecated. Please use registerDetailsViewHeaderAction.
Defined in
registerDetailsViewSection()
registerDetailsViewSection(sectionName: string, sectionFunc: (resource: KubeObject<any>) => null | SectionFuncProps): void
Parameters
Parameter | Type |
---|---|
sectionName | string |
sectionFunc | (resource : KubeObject <any >) => null | SectionFuncProps |
Returns
void
Deprecated
Registry.registerDetailsViewSection is deprecated. Please use registerDetailsViewSection.
register.registerDetailsViewSection('biolatency', resource => {
if (resource?.kind === 'Node') {
return {
title: 'Block I/O Latency',
component: () => <CustomComponent />,
};
}
return null;
});
Defined in
registerRoute()
registerRoute(routeSpec: Route): void
Parameters
Parameter | Type |
---|---|
routeSpec | Route |
Returns
void
Deprecated
Registry.registerRoute is deprecated. Please use registerRoute.
Defined in
registerSidebarItem()
registerSidebarItem(
parentName: null | string,
itemName: string,
itemLabel: string,
url: string,
opts: Pick<SidebarEntryProps, "icon" | "sidebar" | "useClusterURL">): void
Parameters
Parameter | Type |
---|---|
parentName | null | string |
itemName | string |
itemLabel | string |
url | string |
opts | Pick <SidebarEntryProps , "icon" | "sidebar" | "useClusterURL" > |
Returns
void
Deprecated
Registry.registerSidebarItem is deprecated. Please use registerSidebarItem.