私はSencha Touch V2ベータ版を実行していますが、ほとんどrecent documentationです。Sencha Touch V2でMVCビューを正しく有効にする方法
私はExt.application
の指示に従っており、MVCアプリケーションを適切にレイアウトしようとしています。残念ながら、このアプローチで実際にビューをロードする方法を理解することはできません。
index.js
Ext.application({
name: 'rpc',
defaultUrl: 'home/index',
controllers: ['home'], //note: define controllers here
launch: function() {
console.log('Ext.application ~ launch'),
Ext.create('Ext.TabPanel', {
id: 'rpc-rootPanel',
fullscreen: true,
tabBarPosition: 'bottom',
items: [{
title: 'Home',
iconCls: 'home'
}]
});
Ext.create('Ext.viewport.Viewport', {
id:'rpc-rootPanel',
fullscreen: true,
layout: 'card',
cardSwitchAnimation: 'slide'
});
}
});
homeController.js
Ext.define('rpc.controller.home', {
extend: 'Ext.app.Controller',
views: ['home.index'],
stores: [],
refs: [],
init: function() {
console.log('rpc.controller.home ~ init');
},
index: function() {
console.log('rpc.controller.home ~ index');
}
});
indexView.js
Ext.define('rpc.view.home.index', {
extend: 'Ext.Panel',
id: 'rpc-view-home-index',
config: {
fullscreen: true,
layout: 'vbox',
items: [{
xtype: 'button',
text: 'Videos',
handler: function() {
}
}],
html:'test'
}
});
あなたがbの可能性があるすべてのヘルプeを提供することができれば幸いです。
これは良いですが、別名ビットのように思えるそれは...私の右何だたのですか? –
「ウィジェット」が何を参照しているのか説明できますか? –
havaこの質問を見る:http://stackoverflow.com/q/7376969/185655 –