famous-flex-tabbar
famous-flex-tabbar copied to clipboard
Subclassing TabBar produces no output
Hi,
I want to subclass the TabBar component so that I can customize the itemRenderables. But doing so causes nothing to render, even when I strip down my class to the bare necessities. Here's my code:
` var TabBar = require('famous-flex/widgets/TabBar');
function RRTabBar(options) {
TabBar.apply(this, arguments);
}
RRTabBar.prototype = Object.create(TabBar.prototype);
RRTabBar.prototype.constructor = RRTabBar;
module.exports = RRTabBar;
`
`var menuItems = [ {icon: 'navicon-round', text: 'Blah'}, {icon: 'plus-round', text: 'Whoa'}, {icon: 'gear-a', text: 'Settings'} ]
this.tabBar.setItems(menuItems);
`
I've no idea what could be wrong. Your code looks okay at first glance. Could you share the full code or even better an online demo that I can debug?
Thanks for responding @IjzerenHein. It's not a high priority for me right now. But I'll try to put together an online demo when I complete my project.