Hello @marrome,
Thank you for posting on our forum.
With our Modular UI, you can use the Modular UI APIs to replace entire groups of items in one go rather than using disableElements.
For example, using setItems, you can override the view control flyout menu to filter out all the options besides the rotation tools:
const viewControlsFlyout = instance.UI.Flyouts.getFlyout('viewControlsFlyout');
const items = viewControlsFlyout.items;
const newItems = items.splice(4, 3); // can also do 5,2 if you don't want the header
viewControlsFlyout.setItems(newItems);
Which would look like the following:
For more information on using our Modular UI APIs, see our guide here: Flyout | Apryse documentation
Let us know if this works for you!
Best Regards,
Jacob Romano Carlsen
Web Development Support Engineer
Apryse Software Inc.
