Class: Registry

    plugin/registry .Registry

    Constructors

    constructor

    new Registry()

    Methods

    registerAppBarAction

    registerAppBarAction(actionName, actionFunc): void

    deprecated Registry.registerAppBarAction is deprecated. Please use registerAppBarAction.

    Parameters

    Name Type
    actionName string
    actionFunc (…args: any[]) => null | Element

    Returns

    void

    Defined in

    plugin/registry.tsx:118


    registerAppLogo(logo): void

    deprecated Registry.registerAppLogo is deprecated. Please use registerAppLogo.

    Parameters

    Name Type
    logo AppLogoType

    Returns

    void

    Defined in

    plugin/registry.tsx:167


    registerClusterChooserComponent

    registerClusterChooserComponent(component): void

    deprecated Registry.registerClusterChooserComponent is deprecated. Please use registerClusterChooser.

    Parameters

    Name Type
    component null | ComponentType< ClusterChooserProps >

    Returns

    void

    Defined in

    plugin/registry.tsx:175


    registerDetailsViewHeaderAction

    registerDetailsViewHeaderAction(actionName, actionFunc): void

    deprecated Registry.registerDetailsViewHeaderAction is deprecated. Please use registerDetailsViewHeaderAction.

    Parameters

    Name Type
    actionName string
    actionFunc HeaderActionType

    Returns

    void

    Defined in

    plugin/registry.tsx:108


    registerDetailsViewSection

    registerDetailsViewSection(sectionName, sectionFunc): 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;
    });
    
    

    Parameters

    Name Type
    sectionName string
    sectionFunc (props: { resource: any }) => null | SectionFuncProps

    Returns

    void

    Defined in

    plugin/registry.tsx:140


    registerRoute

    registerRoute(routeSpec): void

    deprecated Registry.registerRoute is deprecated. Please use registerRoute.

    Parameters

    Name Type
    routeSpec Route

    Returns

    void

    Defined in

    plugin/registry.tsx:100


    registerSidebarItem

    registerSidebarItem(parentName, itemName, itemLabel, url, opts?): void

    deprecated Registry.registerSidebarItem is deprecated. Please use registerSidebarItem.

    Parameters

    Name Type
    parentName null | string
    itemName string
    itemLabel string
    url string
    opts Pick< SidebarEntryProps , "sidebar" | "icon" | "useClusterURL">

    Returns

    void

    Defined in

    plugin/registry.tsx:76