添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
千年单身的猴子  ·  伯桢新闻·  5 月前    · 
热心肠的香蕉  ·  【OD ...·  9 月前    · 
满身肌肉的遥控器  ·  Python networkx ...·  2 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams // handle a click on the button itself handler: function() { alert("The button was clicked"); menu: new Ext.menu.Menu({ items: [ // these will render as dropdown menu items when the arrow is clicked: {text: 'Item 1', handler: function(){ alert("Item 1 clicked"); }}, {text: 'Item 2', handler: function(){ alert("Item 2 clicked"); }}

How would you dynamically display the selection in the button? Thanks!

I think you can use beforeShow function of a menu which called before showing menu item so here you can get the selected value and set the text of a button. hope it will help u Snehal Dangroshiya Jun 25, 2018 at 4:57

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question . Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers .