-
3 Feb 2012 12:30 AM #1
Answered: [B1] pb with extra properties
Answered: [B1] pb with extra properties
Hi,
In [PR4] or [B1] with sencha-touch-all-compat.js, I can do that:and it works.Code:xtype :'segmentedbutton' ,centered : true ,allowDepress: true ,items : [ { c:1, text:'xxx' } ,{ c:2, text:'yyy' } ,{ c:3, text:'zzz' } ] ,listeners: { toggle: function(container, button, pressed){ if (pressed) { viewPage.setActiveItem(button.c); } else { viewPage.setActiveItem(0); } } }
But with in [B1] with sencha-touch-all-debug.js, button.c is "undefined".
Bug or not ?
thx
-
Best Answer Posted by Michou
found a solution :
now I have to use "button.config.c" and not "button.c"
-
3 Feb 2012 4:33 AM #2
found a solution :
now I have to use "button.config.c" and not "button.c"


Reply With Quote