How to use ember-tether - 1 common examples

To help you get started, we’ve selected a few ember-tether 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 / addon / components / tether-tooltip-and-popover.js View on Github external
if (stringOrNumber && typeof stringOrNumber === 'string') {
    cleanNumber = parseInt(stringOrNumber, 10);

    /* Remove invalid parseInt results */

    if (isNaN(cleanNumber) || !isFinite(cleanNumber)) {
      cleanNumber = 0;
    }
  } else {
    cleanNumber = stringOrNumber;
  }

  return cleanNumber;
}

export default EmberTetherComponent.extend({

  passedPropertiesObject: null,

  didReceiveAttrs() {
    this._super(...arguments);

    const passedPropertiesObject = this.get('passedPropertiesObject');

    if (passedPropertiesObject) {
      this.setProperties(passedPropertiesObject);
    }
  },

  /* Options */

  delay: 0,

ember-tether

Tether an element to another element in the DOM

MIT
Latest version published 8 months ago

Package Health Score

67 / 100
Full package analysis

Popular ember-tether functions