Hi all,
Here i have created combo using extjs 5, here my issue is when user selected item from the combo, how can i retrieve selected item value from another js file.
here i am using the below code
Ext.define('doscore.view.panel.Addpanel', {
extend: 'Ext.container.Container',
xtype: 'app-addpanel',
cls: 'app-addpanel',
title: false,
requires: [
'Ext.form.field.ComboBox',
'doscore.view.grids.Watchlist',
'doscore.view.panel.AddpanelController',
],
layout: 'hbox',
reference: 'add-panel',
hidden: true,
itemId: 'add-panel',
items: [
{
xtype: 'combo',
emptyText: 'Search for Company',
width: '500',
margin: '20 20 15 20',
valueField: 'DataText',
displayField: 'DataId',
reference: 'source1',
matchFieldWidth: false,
listConfig: {
listeners: {
beforeshow: function(picker) {
picker.minWidth = picker.up('combobox').getSize().width;
}
}
},
listeners: {
select: 'itemSelected'
}
},
{
xtype: 'button',
text: 'Add Company',
margin: '20 20 15 10',
}
]
});
when user click any column based on that name create tab and that colum value to be paased to another ext js file.
here js means not javascript it's ext js file
please share any information to me.