sencha touch 中获取picker的text值

时间:2014-12-31 08:43:58   收藏:0   阅读:333

标签: 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));
                           }}
                           },
                            
                       ]
                        
                   },

原文:http://blog.csdn.net/u014311077/article/details/42283407

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!