Hi,
Is it possible to use the layer functionality on panels?
We currently have a group template which a placeholder for the items and then a secondary panel which displays some text boxes for that group.
We currently have this implemented using a boolean stored in the model data and binding it to the panel that holds the textboxes like so:
$(
Group,
'Vertical',
$(Panel, 'Auto', $(Placeholder), { name: 'items' }),
$(
Panel,
'Vertical',
new Binding('visible', 'showPropertyBox').ofModel(),
...otherTextboxesAndStuff
)
)
which we then toggle using:
const { model } = this.diagram;
model.setDataProperty(model.modelData, 'showPropertyBox', this.showPropertyBox);
We are now looking into implementing layers throughout the app (We would like to add the property box its own layer too) but I cannot seem to get it working without hiding the member parts in the group too. Is this possible or should we stick with binding the data property in the specific panel itself?
Thanks