TogglableGroup
Panoramax.components.ui.TogglableGroup ⇐ lit.LitElement
Kind: static class of Panoramax.components.ui
Extends: lit.LitElement
Element: pnx-togglable-group
Slot: button
The button on which click leads to open/close menu
Slot: default
The menu to make shown/hidden on button click
new TogglableGroup()
Togglable Group element allows to make a menu appear/disappear based on button click.
Example
<pnx-togglable-group padded="false" ._parent=${viewer}>
<pnx-button slot="button">
Open menu
</pnx-button>
<div>Menu content</div>
</pnx-togglable-group>
togglableGroup.properties : Object
Component properties.
Kind: instance property of TogglableGroup
Properties
Name | Type | Description |
---|---|---|
[padded] | string |
If set, adds a 15px padding to the menu panel. |