如何使用sencha-touch控件显示平板上的tab界面
2011-11-02 22:47
501 查看
效果图:
html页面上的js引用:
index.js中代码
html页面上的js引用:
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title id="page-title">Pandora</title> <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; minimum-scale=1.0; user-scalable=0;" /> <link rel="stylesheet" href="touch/resources/css/sencha-touch.css" type="text/css"/> <!--<script type="text/javascript" src="/Scripts/jquery-1.4.4.min.js"></script>--> <script type="text/javascript" src="touch/sencha-touch-all.js"></script> <script type="text/javascript" src="app/view/index.js"></script> </head> <body> </body> </html>
index.js中代码
Ext.application({ name: 'Sencha', launch: function () { Ext.create("Ext.TabPanel", { fullscreen: true, tabBarPosition: 'bottom', items: [ { title: 'Home', iconCls: 'home', cls: 'home', html: [ '<img width="65%" src="http://staging.sencha.com/img/sencha.png" />', '<h1>Welcome to Sencha Touch</h1>', "<p>You're creating the Getting Started app. This demonstrates how ", "to use tabs, lists and forms to create a simple app</p>", '<h2>Sencha Touch (2.0.0pr1)</h2>' ].join("") }, { xtype: 'list', title: 'Blog', iconCls: 'star', itemTpl: '{title}', store: { fields: ['title', 'url'], data: [ { title: 'Ext Scheduler 2.0', url: 'ext-scheduler-2-0-upgrading-to-ext-js-4' }, { title: 'Previewing Sencha Touch 2', url: 'sencha-touch-2-what-to-expect' }, { title: 'Sencha Con 2011', url: 'senchacon-2011-now-packed-with-more-goodness' }, { title: 'Documentation in Ext JS 4', url: 'new-ext-js-4-documentation-center' } ] } } ] }).setActiveItem(1); } });
相关文章推荐
- 使用sencha-touch控件制作布局的平板电脑界面
- Sencha touch Panel之间的跳转(如不使用TabPanel或者Carousel控件而产生跳转的动画效果)
- Sencha Touch中如何alert显示一个sencha对象?
- WeX5界面模块化的使用—如何显示声明依赖
- 【Android界面实现】使用ActionBar和DrawerLayout纯原生控件,实现侧滑栏和滑动Tab界面
- Sencha Touch中TabPanel组件的使用
- 如何使用Qt 4把ls命令的结果显示到GUI界面上去?-兼回答网友提问
- (9)uniGUI for C++ builder下如何使用UniPageControl控件做成WEB多页面系统界面框架?
- 【sencha-touch】TabPanel的使用
- 如何使用汇编在dos界面上显示字体和颜色--学习心得笔记
- 11-界面控件ListView之使用SimpleAdapter实现复杂的界面显示
- WinForm中使用XtraGrid控件,实现在界面中动态修改列显示,列名列宽等(进阶)
- Sencha Touch 2.0官方指南:如何使用"类"
- 如何改变vc界面中控件的tab顺序
- 使用VS2010开发ActiveX(MFC)控件(2)——界面显示
- 使用VS2010开发ActiveX(MFC)控件(2)——界面显示
- C#如何使用分页控件[tabControl]
- sencha touch 2 tabpanel中List的不显示问题,解决方案
- 如何使用EasyUI显示表格界面
- 网络采集软件核心技术剖析系列(7)---如何使用C#语言搭建程序框架(经典Winform界面,顶部菜单栏,工具栏,左边树形列表,右边多Tab界面)