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