How to use the v-tooltip.default function in v-tooltip

To help you get started, we’ve selected a few v-tooltip examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gamejolt / frontend-lib / components / tooltip / tooltip.ts View on Github external
import { DirectiveOptions } from 'vue';
import './tooltip.styl';

let AppTooltip: DirectiveOptions = {};
if (!GJ_IS_SSR) {
	const mod: any = require('v-tooltip');
	const VTooltip: any = mod.default;
	AppTooltip = mod.VTooltip;

	// Allows the tooltip to float above any scroll boundaries, otherwise it may not position
	// correctly for things with overflow:hidden.
	(AppTooltip as any).options.defaultBoundariesElement = document.body;

	// Hide on mobile sizes.
	VTooltip.enabled = window.innerWidth > 768;
}

export { AppTooltip };