Sencha Touch字段集标签在模拟器上不可见

时间:2014-03-05 02:34:22

标签: cordova sencha-touch-2.2

我有一个带有fieldset的表单,如下所示

 config: {
    centered: true,
    height: 400,
    id: 'inputForm',
    itemId: 'inputForm',
    width: 500,
    hideOnMaskTap: true,
    modal: true,
    items: [
        {
            xtype: 'fieldset',
            title: 'Title',
            id:'inputformfieldset',
            items: [                
                {
                    xtype: 'toolbar',
                    docked: 'bottom',
                    ui: 'light',
                    layout: {
                        type: 'hbox',
                        align: 'center',
                        pack: 'center'
                    },
                    items: [
                        {
                            xtype: 'button',
                            id: 'submitInputFormButton',
                            itemId: 'submitInputFormButton',
                            ui: 'confirm-round',
                            text: 'Submit'
                        },
                        {
                            xtype: 'button',
                            id: 'cancelInputFormButton',
                            itemId: 'cancelInputFormButton',
                            ui: 'decline-round',
                            text: 'Cancel'
                        }
                    ]
                }
            ]
        }
    ]
}

我正在动态地将字段添加到表单中。当我在chrome中运行它时,一切正常。看截图

enter image description here

但是当我在模拟器中运行时,字段的标签不可见。看截图 enter image description here

有什么想法吗?

更新

我正在添加这样的文本字段。

Ext.getCmp('inputformfieldset').add({
                xtype: fieldType,
                fieldLabel: record.get('name'),
                name: record.get('name')
            });

1 个答案:

答案 0 :(得分:0)

[DEPRECATE][Ext.field.Field#constructor] 'fieldLabel' config is deprecated, use the 'label' config instead 

这是我将fieldLabel更改为标签后开发人员控制台中显示的内容,标签在模拟器中可见。