I'm trying to explain why I can not update the Sina Touch Picker data field The end of) using the setData method I created an array called slots data where I defined my data, the data looks properly:
{text: '50 KB / s', value : 50}, {text} '100 KB / s', value: 100}, {text: '200 kb / s', value: 200}, {text: '300 KB / s', value: 300} Code> -
When I tried to set up the data Using the Data Card (slots data); No error is displayed, but the picker does not display any data.
-
When I tried to update the data like this:
slot: [
{
name: 'picker_slot1', title: 'slot 1' ,
data: [slotdata]
}
] This does not work There is no error in the console Picker is empty. -
The only way I can update this syntax is by using:
slots: [
Name: 'picker_slot1', title: 'slot 1',
data: slots data}}] use method # 1 Would someone like me be able to update my picker data while doing this issue? Any help would be appreciated.
This code is:
my function: function () {var data = this.getData (); Var slotsdata = []; Var PickerData = Data DiesesPluget (','); (Var i = 0; i & lt; picker.data.length; i ++) {slotsdata.push ({text: picardata [i], value: pickcardata [i]})} var picker = Ext.create (' Ext.Picker ', {Slots: [{name:' picker_slot1 ', title:' slot 1 ', data: slotsdata}]}); // it does not work // picasar.secdata (eslotsdata); }
using setSlots () The type of picker class: picker.setSlots ({name: 'limit_speed', title: 'speed', data: [[text: '50 KB / s' , Value: 50}, {text: '100 KB / s', value: 100}]});
Comments
Post a Comment