Closed yunusozcan closed 10 years ago
Override render and include the opentip in the new render function.
var Bookmark = Backbone.View.extend({ template: _.template(...), render: function() { this.$el.html(this.template(this.model.attributes)); //Something like the following new Opentip(this.$el, "Template Rendered!!", { target: this.$el, , showOn: "creation", hideTrigger: "closeButton", style: "alert"}); return this; } });
if you want to initialise opentip on rendered elements you may need Opentip.findElements();
Opentip.findElements();
Override render and include the opentip in the new render function.