className: 'rng-view-tabs',
events: {
- 'click ul a, i': '_onTabTitleClicked'
+ 'click .rng-view-tabs-tabBar a, .rng-view-tabs-tabBar i': '_onTabTitleClicked'
},
initialize: function(options) {
return this;
},
- addTab: function(title, slug, content) {
+ addTab: function(title, slug, content, tutorial) {
if(this.contents[slug]) {
this.contents[slug].detach();
}
var icon = title.icon || null;
if(!this.tabExists(slug)) {
- this.nodes.tabBar.append(this.handleTemplate({text: text, icon: icon, slug: slug}));
+ this.nodes.tabBar.append(this.handleTemplate({text: text, icon: icon, slug: slug, tutorial: tutorial}));
}
if(!this.selectedTab) {
this.selectTab(slug);