ember-tether
ember-tether copied to clipboard
No documentation for Constraints.
Yeah, would love to understand how this works... this plugin has zero documentation.
Turns out, it's the same as https://tether.io
Right, so I'm guessing we have to make a component and extend the ember-tether component to add the constraints property? or do we just plug json directly into the helper?
Constraints can be used like this:
template.hbs
{{#ember-tether
target=targetElement
targetAttachment="top right"
attachment="top left"
constraints=constraints
}}
Tether content
{{/ember-tether}}
component.js
constraints: Ember.computed(function() {
return [{
to: 'scrollParent',
attachment: 'together',
pin: true,
}];
}),
More examples: http://tether.io/ or live demo: http://yapplabs.github.io/ember-tether/