SelectorItem
interface SelectorItem {
element: HTMLElement;
packageId: number;
quantity: number;
price: number | undefined;
name: string | undefined;
isPreSelected: boolean;
shippingId: string | undefined;
}Source: global.ts:1047
One selectable option inside a package selector — the data behind a single card the shopper can pick. Emitted on selector:item-selected and related events so handlers know which package a card represents.
Properties
element: HTMLElement
The card's DOM element.
packageId: number
The package ref_id this card selects.
quantity: number
Quantity this card adds when selected.
price: number | undefined
Unit price for the card, or undefined if not resolved yet.
name: string | undefined
Display name for the card, or undefined if none.
isPreSelected: boolean
true if this card was marked selected in the markup on load.
shippingId: string | undefined
Shipping method id tied to this card, if any.