Data Picker / Time Picker
Get to grips with the data picker and time picker using Momen components.
Introduction
In this tutorial, we'll explore the functionality of the Data Picker and Time Picker components in Momen, designed to enhance live user interactions and data selection in web applications. Whether you're filling in shipping details, selecting dates, or custom data, these tools simplify your user experience.
Usage Scenario
When using the Data Picker and Time Picker components, you can streamline user interactions by allowing them to easily select data like receipt dates, gender, classes, and departments, eliminating the need for manual entry.
![](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%252FLHy8g5Gfml7rlOB4Ofhq%252F1.gif%3Falt%3Dmedia%26token%3Db7e168ba-44be-44c7-b047-d4e98e5d7852&width=768&dpr=4&quality=100&sign=48c426d9&sv=1)
Data Picker Content
The [Data Picker] content comprises three key elements: "Placeholder", "Content", and "Limit".
Prompt Text: This is not required but serves as a placeholder when no default value is available. It is displayed as a guide to users.
Content: This represents the selectable options and must be [Remote Data]. You can choose to create your own options data table or the default state, city, or region table and set the "limit number" (how many options to request) to meet the needs of filtering, filtering, sorting, and other content like the " List". List Fields: It's worth noting that it's important to identify the "list fields" because the remote data has more than one field, and it needs to be clear which field's content is to be displayed.
💡Tips:
1. To display all states or cities, adjust the "limit" to ensure all contents are available.
When you need a relationship between data options, configure separate [Data Picker] components for "state" and "city" to establish the desired connection.
💡Tips:
[Data Picker] The selected data can be found under "Input Box" data when you need to use it, so it is recommended to rename the component in order to find its data accurately.
Interaction
Only the data picker has a Deselectable option.
![Only the data picker has a Deselectable option.](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%252FDng3BM2yvtrMnbhvqSW1%252F11.png%3Falt%3Dmedia%26token%3D08179696-7ed4-439f-b21c-c49a83e1c5b9&width=768&dpr=4&quality=100&sign=b06d2d7a&sv=1)
Deselectable: the selected option can be deleted by clicking the Delete button, and the value of [Data Picker Input Box] will be null after deletion.
![The selected option can be deleted by clicking the Delete button.](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%252FIjbLOEjfjhdZVqoaE2q1%252F22.png%3Falt%3Dmedia%26token%3D8a2e87f3-a1e6-4ada-89fa-44041e0a7bf3&width=768&dpr=4&quality=100&sign=839f0a15&sv=1)
Time/Date Picker Content
Time PIck
![The Time Picker.](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%252FPddRYqx2GS1ZeFL6jY5k%252F33.png%3Falt%3Dmedia%26token%3De73e439b-3cc6-49e0-88cc-c0f954f4e236&width=768&dpr=4&quality=100&sign=2f7be4ff&sv=1)
Set the start time and end time, only support data binding, are not required, generally do not set.
💡Tips:
When the start time and end time are not set, the default time selection range is 00:00 - 23:59.
Configure the time interval, with a default selection of 1 minute. You can choose from predefined intervals of 5, 10, 15, 30, or 60 minutes, but manual input is not supported.
![The time interval is 1 minute style.](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%252FLmuB8BQPYVc84ic6wT1v%252F44.png%3Falt%3Dmedia%26token%3D881da315-f2f1-4429-9666-eb14c4f54568&width=768&dpr=4&quality=100&sign=13e5b0c0&sv=1)
![The time interval is 5 minutes style.](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%252F0SComqeKyAwCLdpmnakK%252F55.png%3Falt%3Dmedia%26token%3Df1fb59e1-600e-4dfc-80c0-e58637e74b84&width=768&dpr=4&quality=100&sign=866b3b99&sv=1)
Setting a default value is optional, and it's used for data binding. When a default value is set, placeholders will not be displayed.
💡Tips:
Once a default value is set, the selector automatically positions itself at the specified default value, as shown below.
![](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%252Fmi0jz8ivHazONm9Ptaij%252F77.png%3Falt%3Dmedia%26token%3D8893a75f-750f-4f64-ad16-6376f37cc1e4&width=768&dpr=4&quality=100&sign=2d31db0a&sv=1)
Configure the prompt text, not required, when there is no default value, the content of the "prompt text" will be displayed.
Date Pick
![The Date Picker.](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%252Fe4Bi4BDHLxy6PhQ1GorQ%252F88.png%3Falt%3Dmedia%26token%3D77a253bd-e709-4e37-a32f-c65ccdc26f2f&width=768&dpr=4&quality=100&sign=1e34cc0c&sv=1)
Setting the start and end dates is only supported for data binding; neither is mandatory.
💡Tips:
When the start date and end date are not set, the default date selection range is January 1, 1901 - December 30, 2901, and the current date is selected by default.
Set default value, non-required, only support data binding. When there is binding, the prompt text is not displayed.
💡Tips:
After setting the default value, the selector is automatically positioned at the default value, as shown below.
![After setting the default value, the selector is automatically positioned at the default value.](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%252FDW2a9Xb9BVBvgrfYoUws%252F99.png%3Falt%3Dmedia%26token%3Dc21c456b-39c4-472b-a0d7-07d9abc15ce1&width=768&dpr=4&quality=100&sign=dc3059bb&sv=1)
Configure the prompt text, not required, when there is no default value, the content of the "prompt text" will be displayed.
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