change-quantity
Section titled “change-quantity”- Purpose: quantity stepper container; holds the clamp bounds and owns the logic. Child
controls find their nearest
change-quantityand callstep()/set(); it emits the clamped quantity. - Attributes:
min : number = 1- minimum quantity (also the default current value).max : number = Infinity- maximum quantity.
- Required ancestor / context:
storesynk-product(consumesproductContext). - Children:
decrease-quantity,input-quantityorshow-quantity,increase-quantity. - Events: emits
sf:quantity-change(bubbles, composed; clampeddetail.quantity). - State it sets: none on itself.
increase-quantity
Section titled “increase-quantity”- Purpose: click control; steps the nearest
change-quantityby+1. PlainHTMLElement(the element itself is the button). - Attributes: none. Required ancestor:
change-quantity(SSK-108). - Events / state: none (calls
change-quantity.step(1)).
decrease-quantity
Section titled “decrease-quantity”- Purpose: click control; steps the nearest
change-quantityby-1. - Attributes: none. Required ancestor:
change-quantity(SSK-108). - Events / state: none (calls
change-quantity.step(-1)).
input-quantity
Section titled “input-quantity”- Purpose: editable quantity field; renders/owns an
<input type="number">kept in sync with the product’squantity. On change, callschange-quantity.set(value). - Attributes: none.
- Required ancestor / context:
change-quantity(calls itsset()); consumesproductContextto read the current quantity. (SSK-108.) - Children: optionally an
<input>(else it creates one). - Events / state: none of its own.
Imported from the Storesynk skill v0.1.0 (references/component-reference.md). To change this page, change it there.