Does ribbon.loadStruct(obj) remove previous ribbon contents?


#1

Does ribbon.loadStruct(obj) remove previous ribbon contents or add to the contents?


#2

yes, loadStruct() method cannot be used to append new ribbon elements to the existing structure:
http://snippet.dhtmlx.com/d88ebd988


#3

Thanks.

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.

image.png