The <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#
Properties#
Property | Attribute | Description | Type | Default |
---|
Cart Item ID | cart-item-id | Cart Item's ID. | any | undefined |
Methods#
The pre-defined 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> |

扫码加入 Apifox 微信交流群
在这里,获得 Apifox 使用上的任何帮助,快速上手让你的研测效率得到大幅提升

扫码加入交流群Modified at 2025-02-20 07:53:20