Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
パネルがあり、このパネルのトップバーにいくつかのボタンがあります。 以下のボタンを選択します。
mypanel button[action=draw]
しかし、パネルのtbarからボタンを選択したい。 それ、どうやったら出来るの?
あなたが尋ねていることを理解するのは本当に難しいです。セレクターは問題ないようです。パネル内の「描画」アクションを持つボタンを選択します。これは、tbar 内にあってもなくてもかまいません。
パネル内に2 つある場合はbutton[action=draw]、tbar 内の 1 つを で選択できますmypanel toolbar button[action=draw]。
button[action=draw]
mypanel toolbar button[action=draw]
変数にツールバーの参照がある場合は、次のようにします。tbar.down('button[action=draw]')
tbar.down('button[action=draw]')