Number Input
Master numeric data handling with Momen's Number Input Components.
Introduction
Discover how to efficiently handle numeric data for a variety of applications in web development. From managing quantities in shopping apps to handling special scoring scenarios, you'll gain the skills to make the most of Number Input Components. Let's get started.
Usage Scenario
Number Input Components in Momen serve the purpose of outputting numeric values. They are handy for scenarios where you need to add quantities or specify numeric ratings. Here are some common use cases:
Shopping Apps: Use Number Input Components to add the quantity of items to your shopping cart.
Rental Apps: Incorporate numeric input for adding the number of devices in rental transactions.
Scoring: Utilize numeric input for scoring within a specific range, such as 1-10, or particular values like multiples of 10 (e.g., 90, 80).
💡Tips:
Number Input Components are primarily designed for adding numbers, and their style cannot be customized. For inputting larger numbers, like scores, consider using "Text Input" components.
Phone numbers should be entered using the [Text Input] Component.
Number Input Content
Default Value
With a default of 0, the initial value can be adjusted within the specified minimum and maximum values.💡Tips: Always set a default value for the Number Input Components.
Maximum Value
Defines the maximum allowed input value. If the entered value exceeds this limit, the maximum value is displayed.
Minimum Value
Specifies the minimum allowed input value. If the entered value is lower than this limit, the minimum value is displayed.
Step Value
Determines the increment or decrement value when using the + and - signs.💡Tips: Number inputs have no step value limitation and can be input directly.
Number Input Interaction
![](https://docs.momen.app/~gitbook/image?url=https%3A%2F%2F2186054900-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FNNm75vAys0CMwBUdWsgC%252Fuploads%252F01S940lHmsZrGIIAOdNt%252Fcdc4428f-186c-4467-b966-5817b032a34c.png%3Falt%3Dmedia%26token%3Db7f6da1a-562e-4857-8d36-24f173591f79&width=768&dpr=4&quality=100&sign=1ff698e4&sv=1)
Disable
When this option is enabled, the + and - signs cannot be clicked, and numeric input is restricted. The component displays the default value, which cannot be modified.
💡Tips: Enabling “Disable” makes the numeric input component purely for display, preventing user input.
![](https://docs.momen.app/~gitbook/image?url=https%3A%2F%2F2186054900-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FNNm75vAys0CMwBUdWsgC%252Fuploads%252Fa1OrimSpKTHQTNmUfRNd%252Fba71119e-c4a1-45bd-84dd-151ebb36c43f.gif%3Falt%3Dmedia%26token%3D049eada3-10e4-4b9d-bc5b-f7539d43f351&width=768&dpr=4&quality=100&sign=55d3e0a7&sv=1)
Disable Input
This setting prevents direct number entry or modification but allows changes via the + and - signs.
![](https://docs.momen.app/~gitbook/image?url=https%3A%2F%2F2186054900-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FNNm75vAys0CMwBUdWsgC%252Fuploads%252FnnHFOofLJHNnNzX5U6h2%252Fa28b1d26-9474-4df6-a8ed-a35b0833b824.gif%3Falt%3Dmedia%26token%3Dfe2647a0-f9a5-40cd-806a-2f3148c6f896&width=768&dpr=4&quality=100&sign=16ae6c6c&sv=1)
Utilization
Add Quantity to Shopping Cart.
To enable users to add quantities to their shopping carts, place a numeric input component within the cart interface. Bind the default value to the relevant data and set the step value to 1.
💡Tips:
The Number Input component style cannot be customized. For customization, consider using image + text components. Check out Momen's e-commerce template for shopping cart page configurations.
![](https://docs.momen.app/~gitbook/image?url=https%3A%2F%2F2186054900-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FNNm75vAys0CMwBUdWsgC%252Fuploads%252FidDTjigpoU11GY8p5uDr%252F09ba6d7c-79be-420a-9feb-43362e7b60e0.gif%3Falt%3Dmedia%26token%3D78ce17fa-672b-4989-9c50-71573eb2e638&width=768&dpr=4&quality=100&sign=34849e25&sv=1)
Special Scoring
When you need to input scores that are integer multiples of ten, such as 100, 90, or 80, you can place a numeric input component on the page. Enable "Disable Input" and set the step value to 10.
![](https://docs.momen.app/~gitbook/image?url=https%3A%2F%2F2186054900-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FNNm75vAys0CMwBUdWsgC%252Fuploads%252F4vRH4FgJ6D3BfntSxYDB%252Fll.gif%3Falt%3Dmedia%26token%3Dd34848ac-f996-4b42-b86e-0d9544ead84a&width=768&dpr=4&quality=100&sign=fa35ea6&sv=1)
If you encounter any issues during the process, feel free to join our Discord community for assistance.
About Momen
Momen is a no-code web app builder, allows users to build fully customizable web apps, marketplaces, Social Networks, AI Apps, Enterprise SaaS, and much more. You can iterate and refine your projects in real-time, ensuring a seamless creation process. Meanwhile, Momen offers powerful API integration capabilities, allowing you to connect your projects to any service you need. With Momen, you can bring your ideas to life and build remarkable digital solutions and get your web app products to market faster than ever before.
Last updated