Hi,
I'm updating our WebViewer to 2.0.0 and have noticed the new annotation tool buttons next to the pan and text selection ones. We'd like to remove those to have the bar contain just what it did before.
I see that I can hide all those tools via our config file like so:
However, wanting to keep pan and text select causes me to need to be more selective; when I try something like this:
$('#toolList').children().each(function(i, ele) {
var tool = $(ele).attr('data-toolmode');
if (tool !== 'Pan' && tool !== 'TextSelect') {
$(ele).hide();
}
});
I can see that they are missing while the document is loading but they reappear once it has loaded.
Is there some other way I'd be better to go about this?
Thanks,
Chris