Constructor
new MemberMobileCardMenu()
Methods
closeMenu()
Close menu display Hides menu items with animation
createMenuItem(item) → {HTMLElement}
Create menu item DOM element Generates button with icon, label, and optional badge
| Name | Type | Description |
|---|---|---|
item | Object | Menu item configuration |
Menu item button element
- Type:
- HTMLElement
handleConnectionStatusEvent()
Handle connection status event from PWA controller (for auth card URL)
handleOutsideClick(event)
Handle clicks outside menu to close it
| Name | Type | Description |
|---|---|---|
event | Event | Click event |
loadMenuItems()
Load menu items from JSON value Parses and validates plugin-registered menu items
onConnect()
Called after base class connect
onConnectionStateChanged()
Called when connection state changes (from base class)
onDisconnect()
Called after base class disconnect
openMenu()
Open menu display Shows menu items with animation
renderMenu()
Render menu items into DOM Creates button elements for each menu item with icons and badges
toggleMenu(event)
Toggle menu open/closed state Handles FAB button click to show/hide menu
| Name | Type | Description |
|---|---|---|
event | Event | Click event |
updateOfflineState()
Update menu items based on offline state Uses base class online property instead of duplicate state