...
It's possible to use any valid browser JavaScript API in Servoy mobile.
For example to show a default browser alert dialog, one can use:
Code Block |
---|
alert('Hello World') |
With Servoy Mobile you can easily integrate , 3rd party javascript JavaScript plugins/libraries can be easily integrated in your an app. Here are the steps to achieve this:
...
js
& css
files of the 3rd party plugin as Media; all ...
js
& css
files from ...
...
...
...
text
...
...
plugins.mobile.getMarkupId()
, ...
...
...
document.getElementById()
onShow
callback ...
...
Code Block |
---|
...
function |
...
onShow(event) { var options = { drawOnly : true }; var api = $('.sigPad').signaturePad(options); api.regenerate(foundset.orders_to_deliveries.signature); } |
...
Full Example
This is a sample, its like a Fedex/UPS delivery app, that uses a jquery JQuery based signature library to display a signature field: (checkout with SVN)
https://subversionsvn.servoy.com/examples/MobileDeliverySample/trunk