Home > widget-integration > CartSelectors > createDebutCartCount
CartSelectors.createDebutCartCount() method
Safely create Debut theme cart count element (XSS-safe)
Signature:
protected createDebutCartCount(cartItemCount: number): HTMLDivElement;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
cartItemCount |
number |
Cart item count to display |
Returns:
HTMLDivElement
HTMLDivElement with safe text content