Returns the current show/hide state.
Sets the show/hide state for all registered elements.
Passing true
will show all elements (restores their original display),
passing false
will hide (display: none) all.
Unregisters all currently tracked elements from the manager.
Returns an array of all currently registered elements.
Scans the given document or DOM parent for all elements with data-gui-element
attribute and registers them automatically.
The source document or parent node for the scan.
Registers a single HTML element to this manager. After registration, the element will respond to GUIManager's collective show/hide state.
The element to register.
Unregisters (removes) a given element from the manager.
The element to remove.
GUIManager – Central manager for registering, showing/hiding, and managing sets of GUI HTML elements in the application.
Allows for collective show/hide toggling, batch registration from a document/parent node, and easy clearing and query of managed elements.
Example