开发者

YUI 2 Remove all buttons inside a buttongroup

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜