【SENCHA TOUCH】picker的使用
2013-08-07 17:27
316 查看
这里的年我是从数据库读取绑定的。格式如月格式。
原帖地址:/article/11106992.html
picker = Ext.create('Ext.Picker', { doneButton : '确认', cancelButton : '取消', useTitles : false, slots : [{ name : 'year', title : '年份', align : "center", data : records }, { name : 'month', title : '月份', align : "center", data : storeMonth }], listeners : { change : function(picker, value, eOpts) { var returnStr = tongpuHttpRequest("text", "./file!fileUrl.do?", "year=" + value.year + "&month=" + value.month + "&rand=" + Math.random()); if (returnStr != null && returnStr.length > 0) { window.open(returnStr); } else { alert('暂无数据!'); } // 写入日志 Ext.Ajax.request({ url : "./util/weblog!addWebMisLog.do?id=" + bbid, success : function(result) { }, failure : function(result) { } }); } } }); Ext.Viewport.add(picker); picker.show();
var storeMonth = [{ text : '1月', value : '1' }, { text : '2月', value : '2' }, { text : '3月', value : '3' }, { text : '4月', value : '4' }, { text : '5月', value : '5' }, { text : '6月', value : '6' }, { text : '7月', value : '7' }, { text : '8月', value : '8' }, { text : '9月', value : '9' }, { text : '10月', value : '10' }, { text : '11月', value : '11' }, { text : '12月', value : '12' }];
原帖地址:/article/11106992.html
相关文章推荐
- sencha-touch 1.1 Picker控件使用
- C# iphone MontTouch UIPicker 的使用
- sencha touch中datepicker的汉化
- 亲手使用Sencha Touch + phonepag开发Web APP随笔 -- 第一个APP
- sencha touch picker
- sencha touch中datepicker的汉化
- sencha touch 扩展篇之使用sass自定义主题样式 (上)使用官方的api修改主题样式
- 使用git开发senchatouch集成了cordova之后的.gitignore配置
- 【翻译】使用Sencha Touch开发Google Glass应用程序
- Sencha touch开发中使用图表EChart出现Initialize failed: invalid dom的解决办法
- sencha touch 2.0如何使用组件
- Sencha Touch开发环境搭建及使用 Sencha Cmd 自动创建项目框架
- Phonegap+Sencha Touch] 移动开发5、Sencha touch结合Phonegap使用
- Sencha touch Panel之间的跳转(如不使用TabPanel或者Carousel控件而产生跳转的动画效果)
- Sencha Touch 使用笔记
- sencha touch list ListPaging使用详解
- [Phonegap+Sencha Touch] 移动开发4、Sencha Touch初步使用
- 使用ASP.Net MVC5 Web API OData和Sencha Touch 开发WebAPP
- Sencha touch 开发中使用Jasmine 进行功能测试