famous-flex-tabbar icon indicating copy to clipboard operation
famous-flex-tabbar copied to clipboard

Subclassing TabBar produces no output

Open atgillette opened this issue 8 years ago • 2 comments

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);

`

atgillette avatar Mar 17 '16 18:03 atgillette

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?

IjzerenHein avatar Mar 20 '16 11:03 IjzerenHein

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.

atgillette avatar Mar 22 '16 23:03 atgillette