Frameworks
Integrations
Mendix
SharePoint
Modular UI
Legacy UI
AnnotationManager
Annotation Types
Customize
Version 11
Version 10
v10.12
v10.11
v10.10
v10.9
v10.8
v10.7
v10.6
v10.5
v10.4
v10.3
v10.2
v10.1
v10.0
Version 8
v8.12
v8.11
v8.10
v8.9
v8.8
v8.7
v8.6
v8.5
v8.4
v8.3
v8.2
v8.1
v8.0
Version 7
Version 6
v6.3
v6.2
v6.1
v6.0
Version 5
Version 4
Version 3
Version 2
WebViewer Server
WebViewer BIM
Flyout Menus in WebViewer provide a compact and versatile way to offer additional options or actions without overcrowding the interface. These hovering menus appear upon user interaction with UI elements such as buttons.
Flyout Menus can be customized and integrated seamlessly, enhancing the user experience by neatly organizing extra functionalities.
To add a Flyout Menu to your application, create instances of the UI.Components.Flyout
class. Each instance can be tailored with custom items, icons, and onClick behaviors, including support for submenu items for deeper navigation options.
After creation, use the UI.Flyouts.addFlyouts method to integrate your Flyout Menu into the UI.
setItems(items)
: Sets an array of item objects to the flyout. Each object in the array should follow the structure described for the options.items
in the constructor. This operation replaces the existing items in the flyout.
Below is an example of creating a flyout, adding items to it, and then programmatically removing an item:
The UI.Flyouts
namespace offers a suite of methods for comprehensive Flyout Menu management, allowing for addition, removal, activation, and positioning within the UI. Following are the available methods:
Integrates your Flyout Menu into the UI.
Removes the flyout with the specified dataElement from the UI.
Displays the flyout with the specified dataElement. Set to null
to hide the active flyout.
Sets the position of the active flyout.
Returns the flyout with the specified dataElement as an instance of UI.Components.Flyout
.
Returns an array of all the flyouts currently in the UI as instances of UI.Components.Flyout
.
Flyout Menus are a dynamic component of WebViewer's Modular UI, offering a flexible solution to incorporate additional user actions and options neatly within the user interface.
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales