【发布时间】:2010-03-08 13:49:26
【问题描述】:
我正在尝试用马拉地语显示表格标签 我正在创建 marathi.js 这是我的 mararhi.js
if(Ext.app.formPanel)
{
Ext.apply(Ext.app.formPanel.prototype,
{
selectUser:'नाव'
}
);
}
我的其他 js 文件包含这个
var Ext.app.formPanel = Ext.extend(Ext.form.FormPanel,{
selectUser:'Select User',
initComponent : function(config) {
Ext.apply(this, {
title : 'User Rights',
bodyStyle : 'padding: 10px; background-color: #DFE8F6',
labelWidth : 100,
width : 755,
id : 'formUserRights',
renderTo:'adminpanel',
items : [ id: 'User',
fieldLabel:this.selectUser,
width:200
] //items
});//Ext.apply
Ext.app.formPanel.superclass.initComponent.apply(this, arguments);
}//init component
}); //yuyu
......
....
但它不能工作
它给出了错误; missing before
var Ext.app.formPanel = Ext.extend.....
但是当我仔细检查时,每件事都正确嵌套。
【问题讨论】:
-
我不确定它是否相关,但您对
items: []使用了错误的语法,[]表示数组,而这些括号内的内容看起来更像一个对象。你的意思可能是items: [{ id: 'User'}]
标签: extjs label non-english