Quantity Input
<salla-quantity-input>
web component is used to allow the customer to use a counter to specify the needed quantity of a specific product, which is framed by a Button component. The component extends the input number element. For more, read from Mozilla.Example

Usage
HTML
SASS
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
Cart Item ID | cart-item-id | Cart Item's ID. | any | undefined |
Methods
methods
allow for calling the function built by Salla which are increase
to add up quantity by one, decrease
to reduce quantity by one, and setValue
which allows for a customizible manner of inputting numbers.Method | Description | Return Type |
---|---|---|
increase() | Increases quantity by one. | Promise<HTMLElement> |
decrease() | Decreases quantity by one. | Promise<HTMLElement> |
setValue(value: any) | Sets quantity by custom value. | Promise<HTMLElement> |
Modified at 2025-03-04 12:54:02