Getting Items From ExtJs7.x Toolbar

The code below shows an example of getting items from a toolbar:

The code here gives a brief demonstration of how to change the backgroud color of buttons in a toolbar by iterating over the toolbar’s items .

I cannot find any method of getting items from extjs7.x document. Iterating over items is the only effective way. If anyone knows another way, please tell me in the comment.