Skip to main content

applySettingsSection

Promotes the menu entries listed in menu-layout.json#settingsSection into Nextcloud's settings foldout — the NcAppNavigationSettings gear at the bottom-left of the navigation, outside the scrollable list. CnAppNav renders every top-level item carrying section: "settings" as a flat entry inside that foldout (with an auto-prepended "Personal settings"). This lifts each listed id out of wherever it currently sits and tags it section: "settings".

import { applySettingsSection } from '@conduction/nextcloud-vue'

const menu = applySettingsSection(laidOutMenu, ['preferences', 'integrations'])
ParamTypeDescription
menuArray<object>The merged + relocated + pruned menu.
settingsIdsArray<string> | undefinedEntry ids to move to the foldout.

Returns the menu with the settings entries lifted out.