EventEdit combo return Object
Posted: Fri Jun 21, 2019 3:39 pm
I have a combo and I wish when I select an item that the returned value is the selected object and not just a single field.
I want the returned value to be of this type :
I am using angular 7.
thank in advance
{
type : 'combo',
name : 'test',
label : 'Test',
store : [
{id:"1", name:"name1", value:"value1"},
{id:"2", name:"name2", value:"value2"},
{id:"3", name:"name3", value:"value3"}
],
displayField: 'name',
index : 1,
}
I want the returned value to be of this type :
{id:"1", name:"name1", value:"value1"}
I am using angular 7.
thank in advance