Can we disable or enable layers in Layer list widget programmatically. I have a RestAPI where permissions are checked and based on that i need to disable or enable layers in Layer List Widget.
I tried adding below code in showLayers function but it dint work.
config layerOptions display
Is there any other place i need to set this, Please guide me on this.
Thanks in Advance.