請原諒我的天真。我試圖使工具欄上的按鈕鏈接到新的卡,而不是TabPanels。新卡將擁有與家庭不同的面板元素我已經觀看了所有的視頻內容,並閱讀了這裏的幾篇文章,但不知怎的,它從未完全設法將其排序。鏈接到Sencha Touch中新面板的按鈕
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不知道你在那裏編輯了什麼。 – Mayowa 2011-06-14 21:05:07
我只是確保代碼格式更好一點 – JamesHalsall 2011-06-14 22:31:32