just to add some more info
i am trying to use some of the available methods. The doc and examples do not seem to be correct on a number of these
i see the following methods
removeTabGroupContent(tabIndex, groupIndex, [subGroupIndex])
addTabGroupContent(tabIndex, groupIndex, subGroupIndex, content, [contentIndex])
the groupIndex parameter in removeTabGroupContent is really a string with the text of the group not an index i believe
so i thought i should be able to remove all content and add but that doesnt seem to work
ribbonObj.removeTabGroupContent(1,"One", 0);
ribbonObj.addTabGroupContent(1, 0, 0, content, 0);
if i only use addTabGroupContent it works. if i only use removeTabGroupContent it works but if i remove and add i get an empty group