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.
精彩评论