Sencha touch 如何在Sencha touch中操纵动态对象

Sencha touch 如何在Sencha touch中操纵动态对象,sencha-touch,Sencha Touch,所以我想动态加载/更改xtype对象的元素。例如,在初始化方法中的逻辑上,我想加载一个或另一个this.down(“#homeView”).title Ext.define("APN.view.FlyoutNavigation", { id: "flyoutNavigationPanel", extend: 'Ext.ux.slidenavigation.View', requires: [ 'Ext.Container', ], conf

所以我想动态加载/更改
xtype对象的元素。例如,在初始化方法中的逻辑上,我想加载一个或另一个
this.down(“#homeView”).title

Ext.define("APN.view.FlyoutNavigation", { id: "flyoutNavigationPanel", extend: 'Ext.ux.slidenavigation.View', requires: [ 'Ext.Container', ], config: { items: [ { itemId: 'nav_home', id: 'homeView', title: "theTitleThatIwantToChange" ... Ext.define(“APN.view.flyutNavigation”{ id:“弹出导航面板”, 扩展:“Ext.ux.slidenavigation.View”, 要求:[ “Ext.Container”, ], 配置:{ 项目:[ { itemId:“导航主页”, id:“homeView”, 标题:“theTitleThatIwantToChange” ... 当我查看类似于
setHtml
的内容时,或者仅仅将此变量分配给
对UI组件没有任何影响


因此,我的问题是如何动态加载对象的变量
this.down(“#homeView”)

来更改标题,您需要调用
setTitle()
方法。您可以在尝试设置它的地方提供一个代码吗?

很抱歉,答复太晚了,确实有效。是否要检查此问题: