diff --git a/docs/extension-system/extension-types/app-menu-items.md b/docs/extension-system/extension-types/app-menu-items.md new file mode 100644 index 00000000000..fff46e91ba5 --- /dev/null +++ b/docs/extension-system/extension-types/app-menu-items.md @@ -0,0 +1,77 @@ +--- +title: 'Application menu item extensions' +date: 2024-07-23T00:00:00+00:00 +weight: 60 +geekdocRepo: https://github.com/owncloud/web +geekdocEditPath: edit/master/docs/extension-system/extension-types +geekdocFilePath: app-menu-items.md +geekdocCollapseSection: true +--- + +{{< toc >}} + +## Extension Type AppMenuItem + +This extension type allows apps to register links to internal or external pages within the application switcher menu on the top left. + +### Configuration + +The Interface for an `AppMenuItemExtension` looks like so: + +```typescript +interface AppMenuItemExtension { + id: string + type: 'appMenuItem' + extensionPointIds?: string[] + label: () => string + color?: string + handler?: () => void + icon?: string + path?: string + priority?: number + url?: string +} +``` + +For `id`, `type`, and `extensionPointIds`, please see [extension base section]({{< ref "../_index.md#extension-base-configuration" >}}) in the top level docs. + +A `handler` will result in a `