开发者

YUI 2 Remove all buttons inside a buttongroup

开发者 https://www.devze.com 2023-03-29 15:41 出处:网络
I\'m trying to remove all the buttons inside a button group, to recreate after the 开发者_C百科button group and change dynamically the inner buttons. My actual code is

I'm trying to remove all the buttons inside a button group, to recreate after the 开发者_C百科button group and change dynamically the inner buttons. My actual code is

var actualButtons = oButtonGroup.getButtons();
console.log('actual buttons', actualButtons);
for (but in actualButtons) {
  oButtonGroup.removeButton(but.id);
}

Thank you for your help.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号