How to use the ember-tooltips/components/ember-tooltip-base.extend function in ember-tooltips

To help you get started, we’ve selected a few ember-tooltips 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 sir-dunxalot / ember-tooltips / app / components / ember-tooltip-base.js View on Github external
import config from '../config/environment';
import EmberTooltipBase from 'ember-tooltips/components/ember-tooltip-base';

let _didUpdateTimeoutLength = config.environment === 'test' ? 0 : 1000;

export default EmberTooltipBase.extend({ _didUpdateTimeoutLength });
github sir-dunxalot / ember-tooltips / addon / components / ember-tooltip.js View on Github external
import EmberTooltipBase from 'ember-tooltips/components/ember-tooltip-base';

export default EmberTooltipBase.extend({
  _tooltipVariantClass: 'ember-tooltip',
});
github sir-dunxalot / ember-tooltips / addon / components / ember-popover.js View on Github external
import { cancel, later } from '@ember/runloop';
import EmberTooltipBase from 'ember-tooltips/components/ember-tooltip-base';

export default EmberTooltipBase.extend({
  popoverHideDelay: 250,
  _tooltipVariantClass: 'ember-popover',

  _isMouseInside: false,

  actions: {
    hide() {
      this.set('_isMouseInside', false);
      this.hide();
    },
  },

  addTargetEventListeners() {
    this.addTooltipTargetEventListeners();
    this.addPopoverTargetEventListeners();
  },