Salla Docs
Merchant API
  • Merchant API
  • Salla OAuth 2.0
Partner APIs
  • App API
  • Shipment API
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Change Log
Salla CLI
Merchant API
  • Merchant API
  • Salla OAuth 2.0
Partner APIs
  • App API
  • Shipment API
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Change Log
Salla CLI
Salla - Opensource
Salla - Developers Community
  1. Form
  • Overview
  • Usage
  • Components Customization
  • Elements
    • Apps Icons
    • Breadcrumb
    • Color Picker
    • Conditional Fields
    • Count Down
    • Filters
    • Infinite Scroll
    • List Tile
    • Loading
    • Map
    • Modal
    • Placeholder
    • Progress Bar
    • Rating Stars
    • Reviews
    • Reviews Summary
    • Sheet
    • Skeleton
    • Slider
    • Social
    • Social Share
    • Tabs
  • Form
    • Button
    • Bottom Alert
    • Contacts
    • Date Time Picker
    • File Upload
    • Menu
    • Quantity Input
    • Select
    • Tel Input
  • Product
    • Add Product
    • Advertisement
    • Comments
    • Conditional Offer
    • Gifting
    • Installment
    • Meta Data
    • Offer
    • Offer Modal
    • Orders
    • Payments
    • Product Availability
    • Product Card
    • Products List
    • Product Options
    • Product Size Guide
    • Products Slider
    • Quick Buy
    • Quick Order
    • Scopes
    • Search
  • User
    • Cart Summary
    • Localization
    • Login
    • Loyalty
    • Rating
    • User Menu
    • User Profile
    • User Settings
    • Verify
  1. Form

Quantity Input

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#

Quantity Input Example

Usage#

HTML
SASS

Properties#

PropertyAttributeDescriptionTypeDefault
Cart Item IDcart-item-idCart Item's ID.anyundefined

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.
MethodDescriptionReturn 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
Previous
Menu
Next
Select