首页 > 代码库 > sencha touch 中获取picker的text值

sencha touch 中获取picker的text值

标签:Sencha Touch

[1].[代码] [HTML]代码 跳至 [1]

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
                       
                       xtype:‘picker‘,
                       id:‘picker‘,
                       slots: [
                           {
                               name: ‘limit_speed‘,
                               title: ‘Speed‘,
                               data: [
                                   {text: ‘50 KB/s‘, value: 50},
                                   {text: ‘100 KB/s‘, value: 100},
                                   {text: ‘200 KB/s‘, value: 200},
                                   {text: ‘300 KB/s‘, value: 300}
                               ],
                                listeners:
                               {
                                select:function( t, record, eOpts ){
                               alert(JSON.stringify(record.getData().text));
                           }}
                           },
                            
                       ]
                        
                   },

sencha touch 中获取picker的text值