sencha:日期选择组件datepicker
2024-08-21 07:04:02
来源于《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浏览器显示如下:
最新文章
- Django基础之安装配置
- swiper的初步使用
- 用Javascript模拟微信飞机大战游戏
- js注入,黑客之路必备!
- Sticks(poj1011/uva307)
- ajax 新闻栏目
- CodeIgniter学习一:基础知识
- IP选路
- Redis集群之配置文件详解(待完善)
- 为什么Java 两个Integer 中1000==1000为false而100==100为true?
- Android 从ImageView中获取Bitmap对象方法
- WPF 验证没有通过无法保存数据(非常好)+ 虚似数据库
- Android开发之漫漫长途 XII——Fragment详解
- RequireJS模块化编程详解
- 涂抹mysql笔记-管理mysql服务
- VS.C#如何向数据数据库中存入和读取图片的
- Mac python Tesseract 验证码识别
- 简单使用Google Analytics监控网站浏览行为
- UISwipeGestureRecognizer 左右事件捕捉
- org.json