【发布时间】:2011-09-14 20:35:47
【问题描述】:
请原谅我的天真。我正在尝试将 ToolBar 上的按钮链接到新卡片,而不是 TabPanels。新卡片的面板元素将与我在此处观看所有视频并阅读了几篇文章的首页不同,但不知何故始终无法对其进行排序。
new Ext.Application({
name: 'Demo App',
launch: function() {
this.viewport = new Ext.TabPanel({
fullscreen: true,
id: 'mainPanel',
html: 'Welcome',
cls: 'homescreen',
dockedItems: [{
xtype: 'toolbar',
ui: 'light',
title: 'Home',
items: [
{text: 'Option1', ui: 'action', flex: 1},
{xtype: 'spacer', },
{text: 'Option2', ui: 'action',flex: 1 }
]
}]
});
}
});
【问题讨论】:
-
@Jaitsu 不确定你在那里编辑了什么。
-
我只是确保代码的格式稍微好一点
标签: sencha-touch javascript-framework extjs