Hello, I’m AiRon, an automated tech support bot While you wait for one of our customer support representatives, I can help you with your question.
To customize the view controls in the flyout menu of WebViewer version 11.9.0, especially to remove sections that are empty after disabling certain buttons, you can achieve this by modifying the flyout menu configuration.
Some things you can try:
Access the flyout menu configuration in the WebViewer’s UI setup.
Identify the sections within the flyout menu and remove any sections that are empty or not needed.
Ensure that only the desired rotation settings are included in the menu.
Here are some resources that might help you:
Flyout Menus - Learn how to integrate and customize flyout menus in the UI.
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);