Extjs中面板tbar的合适组件查询

Suitable component query for tbar of a panel in Extjs

我有一个面板,在这个面板的顶部栏中有一些按钮。
我select下面的按钮:

mypanel button[action=draw]

但我想 select 面板 tbar 中的按钮。
我该怎么做?

你问的真的很难理解。 selector 看起来不错。它 select 是面板内带有操作 'draw' 的按钮,它可以在 tbar 内,也可以不在。

如果面板内有两个 button[action=draw],则可以 select tbar 中的那个 mypanel toolbar button[action=draw]

如果您在变量中有工具栏的引用,请这样做:tbar.down('button[action=draw]')