来源于《sencha touch权威指南》

-------------------------------

除app.js外,其它内容都与上一篇博客里的内容相同。app.js代码如下:

Ext.require(['Ext.form.Panel','Ext.form.FieldSet','Ext.field.Radio','Ext.field.Select','Ext.TitleBar','Ext.field.DatePicker']);
Ext.application({
name: 'MyApp',
icon: 'images/icon.png',
glossOnIcon: false,
phoneStartupScreen: 'images/phone_startup.png',
tabletStartupScreen: 'images/tablet_startup.png', launch: function(){
var formPanel = Ext.create('Ext.form.Panel',{
id: 'formPanel',
scrollable: 'vertical',
items: [{
xtype: 'fieldset',
title: '电影信息',
instructions: '请填写电影信息',
defaults:{
labelwidth: '20%'
},
items:[{
xtype: 'datepickerfield',
name: 'released',
label: '发行日期',
picker:{
yearFrom: 2000,
yearTo: 2100
},
value: new Date(),
dateFormat: 'Y/m/d',
}]
}]
});
Ext.Viewport.add(formPanel);
}
});

chrome浏览器显示如下:

最新文章

  1. Django基础之安装配置
  2. swiper的初步使用
  3. 用Javascript模拟微信飞机大战游戏
  4. js注入,黑客之路必备!
  5. Sticks(poj1011/uva307)
  6. ajax 新闻栏目
  7. CodeIgniter学习一:基础知识
  8. IP选路
  9. Redis集群之配置文件详解(待完善)
  10. 为什么Java 两个Integer 中1000==1000为false而100==100为true?
  11. Android 从ImageView中获取Bitmap对象方法
  12. WPF 验证没有通过无法保存数据(非常好)+ 虚似数据库
  13. Android开发之漫漫长途 XII——Fragment详解
  14. RequireJS模块化编程详解
  15. 涂抹mysql笔记-管理mysql服务
  16. VS.C#如何向数据数据库中存入和读取图片的
  17. Mac python Tesseract 验证码识别
  18. 简单使用Google Analytics监控网站浏览行为
  19. UISwipeGestureRecognizer 左右事件捕捉
  20. org.json

热门文章

  1. 微软原版WINDOWS10-LTSB-X64位操作系统的全新安装与优化
  2. python的一些开源库
  3. bisect模块用于插入
  4. Mysql 拿指定经纬度与数据库多条经纬度进行距离计算 (转)
  5. Nginx httpS server配置
  6. CAN总线标准帧
  7. php-fpm使用
  8. RHEL6 64位ASM方式安装oracle 11gR2(一)
  9. String to Integer (atoi) ???
  10. Linux - 锁定文件