@bitrix24/b24ui-nuxt
Version:
Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE
21 lines (20 loc) • 741 B
TypeScript
import { type Ref, type InjectionKey } from 'vue';
/**
* Loading state for SidebarLayout
*/
export interface SidebarLayoutApi {
readonly isLoading: Readonly<Ref<boolean>>;
readonly isParentLoading: Readonly<Ref<boolean>>;
readonly isRootLoading: Readonly<Ref<boolean>>;
setLoading: (value: boolean) => void;
setParentLoading: (value: boolean) => void;
setRootLoading: (value: boolean) => void;
rootRef: Ref<boolean>;
}
export declare const sidebarLayoutInjectionKey: InjectionKey<SidebarLayoutApi>;
/**
* Hook for accessing SidebarLayout API
* @returns API of current SidebarLayout
* @throws {Error} If called outside SidebarLayout component
*/
export declare function useSidebarLayout(): SidebarLayoutApi;