angular-gridster2
angular-gridster2 copied to clipboard
Feature Request: Focus layer in multi layer
It would be nice to be able to display a specific layer at the top when using allowMultiLayer: true
.
Today it's difficult to actually manage the items on different layers.
Maybe recalculate the z-index with something like
(item.layerIndex + this.gridster.$options.layerOffset) % this.gridster.maxLayerIndex
This way the zindex is relative to the current layer offset. You can move through layers by iterating layerOffset from 0 to maxLayerIndex.
References: Added allow widget in multiple layers #599