UNPKG

@nativescript-community/ui-popover

Version:
19 lines (18 loc) 615 B
import { NativeScriptVue } from 'nativescript-vue'; import Vue from 'vue'; import { PopoverOptions } from '..'; import { View } from '@nativescript/core'; export interface VuePopoverOptions extends Omit<PopoverOptions, 'anchor'> { anchor: NativeScriptVue<View> | View; props?: any; } declare module 'nativescript-vue' { interface NativeScriptVue<V = View> extends Vue { $showPopover(component: typeof Vue, options?: VuePopoverOptions): Promise<any>; $closePopover(...args: any[]): any; } } declare const PopoverPlugin: { install(Vue: any): void; }; export default PopoverPlugin;