如何在extjs中为没有冒号的组合框带来fieldLabel

moh*_*han 1 extjs extjs4.1 sencha-architect

任何人都可以告诉如何在extjs中为没有冒号的组合框带来fieldLabel

谢谢

Har*_*ran 6

使用labelSeparator:""combobox的配置来解决问题.

参考下面的例子

Ext.create('Ext.form.ComboBox', {
    fieldLabel: 'Choose State',
    store: states,
    queryMode: 'local',
    displayField: 'name',
    valueField: 'abbr',
    labelSeparator : "",
    renderTo: Ext.getBody()
});
Run Code Online (Sandbox Code Playgroud)

谢谢,确定它会起作用.