I'm trying to create a property grid, with form fields in the value column. By default when I click on the value, it turns to a text input. But I want it to be always visible as a text field or a combobox or a datepicker etc. I tried using sourceConfig
, but no luck. How to do it?
Here's some of my code:
Ext.create('Ext.grid.property.Grid', {
title: 'Details',
id: 'settings-details',
source: {
"Username": "Username", //Need a text input
"Email": "Email",
"State": "State" //Need a combo
},
sourceConfig: {
"Username": {
editor: Ext.create('Ext.form.field.Text', { allowBlank: true }),
displayName: 'Whatever'
}
}
}),