原文链接: http://chennaigong.iteye.com/blog/1555211
在sencha touch2中,panel就是一个容器,可以容纳很多组件,可以控制布局。代码如下
Ext.application(
{
name:"sencha",
launch:function()
{
var button = Ext.create('Ext.Button', {
text: 'Button',
id: 'rightButton'
});
Ext.create('Ext.Container', {
fullscreen: true,
items: [
{
docked: 'top',
xtype: 'titlebar',
items: [
button
]
}
]
});
Ext.create('Ext.Panel', {
html: 'Floating Panel',
left: 0,
padding: 10
}).showBy(button);
}
}
)
docked:'top'表示工具栏位置在上。这只是个hello world式的例子 。如果想了解复杂的应用,可以参看文档的介绍哦。
分享到:
相关推荐
NULL 博文链接:https://chennaigong.iteye.com/blog/1542268
SenchaSDKTools-2.0.0-Beta-windows
sencha-touch-2.1.0-gpl.zip 官网下载的,欢迎下载
sencha-touch-2.3.1-gpl.zip
SenchaSDKTools-2.0.0-beta3-windows
sencha touch2移动开发框架,ajax获取数据
SenchaSDKTools-1.2.3 SenchaSDKTools SenchaSDKTools-1.2.3-windows-installer SenchaTools Extjs4.0 SDK Tools 用来压缩打包部署Extjs4.0应用
sencha-touch-2.0.0-commercial
sencha-touch-2.0.0-commercial
sencha-touch-2.0.0-pr1.zip
Sencha Touch2发布.pdf
SenchaSDKTools-2.0.0-beta3进行js文件打包工具,SenchaSDKTools-2.0.0-beta3安装后可以将编辑好的js文件进行压缩打包。
sencha-touch-2.1.0-gpl
sencha-touch-2-b3
Sencha SDK Tools-2.0.0-beta3-windows.exe
清晰文字版sencha touch2 up and running
sencha-touch-2.0.1-gpl.zip
sencha-touch2 api,对于开发者有所帮助
SenchaArchitect 4(5-4)