MemberMobileCardProfile

MemberMobileCardProfile

MemberMobileCardProfile Stimulus Controller

Manages mobile-optimized member profile card display with PWA integration. Extends MobileControllerBase for centralized connection handling.

Features:

  • Mobile-optimized profile card layout
  • PWA readiness integration
  • Fetch with retry for reliability
  • Dynamic card generation for plugin sections

Constructor

new MemberMobileCardProfile()

Source:

Methods

handlePwaReady()

Description:
  • Handle PWA ready event

Source:

(async) loadCard()

Description:
  • Load member profile data with retry logic

Source:

onConnect()

Description:
  • Called after base class connect

Source:

onConnectionStateChanged(isOnline)

Description:
  • Handle global online/offline state changes from MobileControllerBase.

Source:
Parameters:
Name Type Description
isOnline boolean

Current connection state.

onDisconnect()

Description:
  • Called after base class disconnect

Source:

pwaReadyValueChanged()

Description:
  • Handle PWA ready state changes

Source:

renderMemberData()

Description:
  • Render member data to the card

Source:

renderPluginSections()

Description:
  • Render plugin-provided sections

Source:

retryLoad()

Description:
  • Retry loading card data

Source:

showOfflineMessage()

Description:
  • Show offline message with retry option

Source:

startCard()

Description:
  • Create a new mobile card section

Source:

updatePhotoActionsForConnection(isOnline)

Description:
  • Hide photo capture/upload affordances while offline.

Source:
Parameters:
Name Type Description
isOnline boolean

Current connectivity state.