PDA

View Full Version : [STALE-484] Default value on Toggle component



nick_p
29 Oct 2010, 3:08 PM
Sencha Touch version tested:

0.9 rev 8


Platform tested against:

iOS 4


Description:

Setting a default value for the Toggle component changes the colour but not the position of the slider element


Test Case:



new Ext.form.Toggle({
name: 'toggle',
xtype: 'toggle',
value: 1
})

BrendanC
1 Nov 2010, 9:57 AM
Thanks for the bug report.

evant
4 Nov 2010, 9:48 PM
I'm unable to reproduce this issue on 0.99, can you confirm?



Ext.setup({
onReady: function(){
var toggle = new Ext.form.Toggle({
name: 'toggle',
xtype: 'toggle',
value: 1
});

new Ext.form.FormPanel({
fullscreen: true,
items: [toggle]
});

console.log(toggle.getValue());
}
});