Hi
I'm adding dynamically created feature layer in WAB 2.6
In legend widget i could see the legend info also, but i want to hide the other values present in the legend.
please refer the screenshot.
i want to hide that "all other values" in Legend widget of WAB 2.6
Thanks & Regards
Siva
Solved! Go to Solution.
Robert,
I did the same while getting the renderer response from the smartMapping.
After the legend is created use this code:
setTimeout(function(){
query(".esriLegendLayer>tbody>tr>td>table>tbody>tr>td").forEach(function(node){
if(node.innerHTML == '<all other values>'){
node.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.style.display = 'none';
}
});
}, 500);
Robert,
I did the same while getting the renderer response from the smartMapping.