Skip to content

Instantly share code, notes, and snippets.

@typeoneerror
Last active August 29, 2015 14:26
Show Gist options
  • Save typeoneerror/f0b143767f66728f7e9e to your computer and use it in GitHub Desktop.
Save typeoneerror/f0b143767f66728f7e9e to your computer and use it in GitHub Desktop.
import Ember from 'ember';
export default Ember.Component.extend({
text: null,
tooltip: null,
didInsertElement: function() {
this.$('[data-toggle=tooltip]').each(function() {
$(this).tooltip({ container: 'body' });
});
}
});
<a href="#" data-toggle="tooltip" title={{tooltip}}>{{text}}</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment