Does ribbon.loadStruct(obj) remove previous ribbon contents or add to the contents?
yes, loadStruct() method cannot be used to append new ribbon elements to the existing structure:
When examining the DOM, the earlier ribbon contents (“data”) is still there. After the attachRibbon(data) and then loadStruct(new_data) there are two divs class=“dhxtabbar_cont”. The first contains ‘data’, the second ‘new_data’.
The new contents simply overlays the older due to absolute positioning. This is a problem for an app that makes frequent changes to the ribbon contents over a long period.