The camera widget enables PhoneGap native camera functionality within your Mendix mobile application.
For more information on contributing to this repository visit Contributing to a GitHub repository!
The camera widget functions on the latest versions of both iOS and Android. Windows Phone is currently not supported. Additionally, v3.0 drops support for Mendix 5 projects. If you wish to include the widget in an older project, please download v2.5 from the versions tab.
In version 3.0, support for offline profiles was introduced. Functionality remains the same in the new offline profile, with the exception that on save microflows and the Autosave setting will trigger an error in the client when enabled.
Place the widget in a dataview where you want the button to be placed. Make sure this form is reachable from a mobile application.
The class that will be set on the image preview container.
The width of the image preview.
The height of the image preview.
Where the image preview will be shown relative to the button.
The label text that is shown on the button.
An optional class to be placed directly on the button dom node.
An optional microflow that will be triggered when the object is saved.
An optional nanoflow that will be triggered when the object is saved.
Optional setting to auto-save an image to the contextobject. use the on save mf to commit the object and run further actions.
Setting that determines where the image will come from: gallery or the camera.
This will change the image-width and height on output. Be aware that setting this higher will be more taxing and will take longer to upload. If quality width and height are both set to 0
, the image will be saved full size.
Width in pixels to scale image. Must be used with targetHeight. Aspect ratio remains constant.
Height in pixels to scale image. Must be used with targetWidth. Aspect ratio remains constant.