- addTab: function(title, view) {\r
- tabContent[title] = view;\r
+ addTab: function(title, slug, contentView) {\r
+ tabContent[slug] = contentView;\r
+ view.find('#rng-tabsManager-tabBar').append(sandbox.getTemplate('tabHandle')({title: title, slug: slug}));\r
+ if(_.values(tabContent).length === 1)\r
+ selectTab(slug);\r
+ },\r
+ getCurrentSlug: function() {\r
+ return currentSlug;\r