Frameworks
Integrations
Mendix
SharePoint
Default UI
Modular 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
Hiding DOM elements is an essential aspect of a customizable UI. WebViewer UI supports hiding/showing elements both initially and dynamically.
To hide/show the DOM elements, first you must find the data-element
attribute on the elements from a DOM inspector. For example, if we inspect the left panel,
we can find that it has a data-element
value of leftPanel
. Now we can use that value to hide/show it.
You can view the full list of data elements in our open source UI repo.
To hide the DOM elements even before the initial render, you can use a constructor option disabledElements
to pass a list of data-element
values that should be hidden.
Example
To enable/disable the DOM elements, you can use the following APIs:
Example
Note that these are different from opening/closing elements. Instead of changing visibility, these APIs will actually remove/re-render elements in the DOM. To change visibility, you can refer to the sample below.
You can toggle panels, overlays, popups, and modals.
Example
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales