Extjs Sencha 1.1选择器-未注册xtype
我正试图使用xtype(根据Sencha文档,它是“picker”)将选择器添加到Sencha中的工具栏中,但我一直从Chrome开发者工具中得到这个错误:Extjs Sencha 1.1选择器-未注册xtype,extjs,picker,Extjs,Picker,我正试图使用xtype(根据Sencha文档,它是“picker”)将选择器添加到Sencha中的工具栏中,但我一直从Chrome开发者工具中得到这个错误: “未捕获正在尝试使用尚未注册的xtype创建组件:picker” 这是我的代码: {xtype: 'picker', width:160, slots:[ { xtype: 'pickerslot',
“未捕获正在尝试使用尚未注册的xtype创建组件:picker” 这是我的代码:
{xtype: 'picker', width:160,
slots:[
{
xtype: 'pickerslot',
name: 'states',
data: statusStore.data.items
}
],
cancelButton: false,
doneButton: false,
listeners:{
pick : function(field, value) {
selectedStatus = value.states;
},
afterrender : function(picker) {
if (FPA.stores.DataProvider.listItemsStore) {
//Ext.ComponentMgr.get('statList').setValue(FPA.stores.DataProvider.listItemsStore.status);
} else {
// Ext.ComponentMgr.get('statList').setValue(statusStore.data.get(0));
}
}
}},
任何帮助都将不胜感激 Try
Ext.reg('picker',Ext.picker)代码>在xreate语句上方,并查看这是否解决了您的问题。Sencha touch 1.1文档非常棒是的,在那之后我自己注意到他们忘记注册xtype。手动操作解决了。。。