Image Picker
Learn about image picker component in Momen.
Update Details
Combined the single and multiple image pickers. The output type is determined by the 'number of images' setting:
For one image, it uses the 'image' type, aligning with the previous single image selector.
For more than one image, it uses the 'array' type, similar to the previous custom multi-image selector.
Removed the focus mode and defaulted to a mainstream style. In multi-image mode, each image's width is the total width of the component divided by the number of images per row.
Enhanced built-in interaction logic includes adding images with a delete option on the top-left corner of each image and previewing images upon upload.
Removed actions for adding and deleting images from the image selector.
Application Scenarios
Useful for updating user avatars and uploading multiple images simultaneously.
Image Picker Design
Allows customization of individual image styles including rounded corners, background color, border, and shadow.
Image Selector Content
Number of images configuration: defaults to 1; settings for more than one trigger multi-image options.
Quantity Rules
One image uses the 'image' type.
More than one image uses the 'array' type, with a maximum of 99.
Multi-image Settings
Number of columns: images per row.
Spacing between images: distance between columns.
Set default images for adding views, which can be uploaded locally or bound to image data types.
Default image values are data-bound and displayed when the component loads (single image as 'image' type, multiple images as 'array' type).
Image Selector Interactions
Interactions
Loading animation: opt to show an animation during image uploads.
Actions upon success: configurable actions triggered after uploads are completed.
Image Picker Output Operations
Single Image
Data model includes an image field.
Attach insertion action to a button.
Bind the image field to a single-image component.
Trigger addition action by clicking the button after previewing and uploading an image.
Multiple Images
Data model includes an image field.
Attach batch insertion action to a button.
Bind to an image component configured for more than one image.
Use the three dots on the right to switch settings.
Complete batch image insertions by clicking the button after previewing and uploading.
Note
If real-time preview displays "Image result is undefined", a database deployment or preview is necessary.
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