Constructor
new MemberCardProfile()
Methods
appendToCard(element, minSpace)
- Description:
Append element to card with overflow handling Creates new card if content would exceed available space
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
element |
HTMLElement | Element to append to card |
minSpace |
Number | null | Minimum space percentage to maintain |
connect()
- Description:
Connect controller to DOM Initiates card loading process
- Source:
initialize()
- Description:
Initialize controller state Sets up card management variables
- Source:
loadCard()
- Description:
Load member card data from API Fetches member information and organizes plugin content into cards
- Source:
optionsForFetch() → {Object}
- Description:
Configure fetch options for AJAX requests Sets up headers for JSON API communication
- Source:
Returns:
Fetch options object
- Type
- Object
startCard()
- Description:
Create and initialize new card Sets up new card structure and updates current card reference
- Source:
usedSpaceInCard() → {Number}
- Description:
Calculate used space in current card Measures total height of all child elements
- Source:
Returns:
Total height of card content in pixels
- Type
- Number