UNPKG

@nextcloud/vue

Version:
27 lines (26 loc) 992 B
import { InjectionKey, Ref, VNode } from 'vue'; interface AppSettingsRegistrationContext { /** * Register a new section on the app settings dialog * * @param id - The section ID * @param name - The section name * @param order - Optional section order in the list * @param icon - Optional icon component */ registerSection(id: string, name: string, order?: number, icon?: VNode[]): void; /** * Unregistered from the app settings dialog to remove it from dialog * * @param id - The section ID */ unregisterSection(id: string): void; } export declare const APP_SETTINGS_REGISTRATION_KEY: InjectionKey<AppSettingsRegistrationContext>; export declare const APP_SETTINGS_LEGACY_DESIGN_KEY: InjectionKey<Ref<boolean>>; /** * Get the provided methods from the app settings dialog. * This is to be used in the app settings sections. */ export declare function useAppSettingsDialog(): AppSettingsRegistrationContext; export {};