UNPKG

@bitrix24/b24ui-nuxt

Version:

Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE

27 lines (26 loc) 707 B
import type { Ref } from 'vue'; export type UseLoadingProps = { /** * The id of the SidebarLayout. * @defaultValue useId() */ id?: string; /** * The storage to use for the size. * @defaultValue 'cookie' */ storage?: 'cookie' | 'local'; /** * Unique id used to auto-save size. * @defaultValue 'dashboard' */ storageKey?: string; }; export type UseLoadingReturn = { elLayout: Ref<HTMLElement | null>; isLoading: Ref<boolean>; load: (value?: boolean) => void; }; export declare const useLoading: (_key: string, options?: Ref<UseLoadingProps> | UseLoadingProps, { loading }?: { loading?: Ref<boolean>; }) => UseLoadingReturn;