view.js
{
xtype: 'combobox',
store: state,
typeAhead: true,
queryMode: 'local',
emptyText: 'empty text ...',
selectOnFocus: true,
margin: screenLeft,
cls: 'my-org',
itemSelector: '.org-item',
valueField:'id',
displayField:'name',
itemCls:'my-orgaClass',
listeners: {
select: function(view, record, item, index, e, eOpts) {
console.log("=======record",record)
console.log("record",record.get('name'));
}
},
},



store Arr
[
{
"_id": "1",
"name": "test",
"children": [
{
"_id": "11",
"name": "test1",
"text": [
"test1"
],
"leaf": "true",
"className": "my-button-network"
}
],
"text": "test",
"className": "my-button",
"expanded": "true"
},
{
"_id": "2",
"name": "Inventum2",
"children": [
{
"_id": "21",
"name": "inventum-2 network",
"text": [
"inventum-2 network",
"inventum-2 network-1"
],
"leaf": "true",
"className": "my-button-network"
},
{
"_id": "22",
"name": "inventum-2 network-1",
"text": [
"inventum-2 network",
"inventum-2 network-1"
],
"leaf": "true",
"className": "my-button-network"
}
],
"text": "Inventum2",
"className": "my-button",
"expanded": "true"
},

{
"_id": "3",
"name": "Test",
"children": [
{
"_id": "31",
"name": "TestDevice",
"text": [
"TestDevice",
"SouthEx"
],
"leaf": "true",
"className": "my-button-network"
},
{
"_id": "32",
"name": "SouthEx",
"text": [
"TestDevice",
"SouthEx"
],
"leaf": "true",
"className": "my-button-network"
}
],
"text": "Test",
"className": "my-button",
"expanded": "true"
}
]



now i want add one class on all top level organization and another class on its childern