本文档由 Apifox 自动生成,推荐使用 Apifox - API 文档、API 调试、API Mock、API 自动化测试!
<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.
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
Cart Item ID | cart-item-id | Cart Item's ID. | any | undefined |
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 使用上的任何帮助,快速上手让你的研测效率得到大幅提升