Skip to content

Universal DevTools Kit SDK


Universal DevTools Kit SDK / @u-devtools/core / GeneralMenuItem

Interface: GeneralMenuItem ​

Defined in: index.ts:444

Menu item for the "General" section in ActivityBar.

Allows plugins to add their actions to the general menu, even if the plugin itself is hidden from the main ActivityBar menu.

Example ​

ts
const plugin: PluginClientInstance = {
  name: 'Plugins',
  icon: 'Squares2X2',
  hideFromMenu: true,
  generalMenuItems: [
    {
      label: 'Extensions',
      icon: 'Squares2X2',
      action: (api) => {
        api.navigation.openPlugin('Plugins');
      }
    }
  ]
};

Properties ​

action() ​

action: (api) => void

Defined in: index.ts:453

Action callback when menu item is clicked.

Parameters ​

ParameterTypeDescription
apiClientApiClient API for interacting with DevTools

Returns ​

void


icon ​

icon: string

Defined in: index.ts:448

Heroicons icon name (e.g., 'Cube', 'MagnifyingGlass')


label ​

label: string

Defined in: index.ts:446

Menu item label text

Released under the MIT License.