0
我有TBAR網格與一個複選框如項:EXTJS轉換對象部件
tbar: [ {
boxLabel: 'field label',
name: 'ShowEstimationConfilictsWhileReport',
itemId: 'ShowEstimationConfilictsWhileReport',
xtype: 'checkbox',
}],
initComponent: function() {
var me = this;
var myCheckbox = me.tbar[0]; //?? get object but i want checkbox extjs component
me.callParent();
}
在initComponent(),TBAR [0]得到目的:
Object {
boxLabel: "filed label",
name: "ShowEstimationConfilictsWhileReport",
itemId: "ShowEstimationConfilictsWhileReport",
xtype: "checkbox"
}
如何可以我獲取checkboxfield作爲extjs組件或如何可以將此對象轉換爲extjs組件。