Give new options/parameters a default value

- New option "allow_video": which enables or disables selection of video's
- New option "title": provide a custom title in the header of the selection screen
- New option "message": provide a custom subtitle in the header of the selection screen
This commit is contained in:
hanssens
2015-08-20 21:06:10 +02:00
parent 59668e64b5
commit a2ec5ca8f0
+4 -1
View File
@@ -30,7 +30,10 @@ ImagePicker.prototype.getPictures = function(success, fail, options) {
maximumImagesCount: options.maximumImagesCount ? options.maximumImagesCount : 15,
width: options.width ? options.width : 0,
height: options.height ? options.height : 0,
quality: options.quality ? options.quality : 100
quality: options.quality ? options.quality : 100,
allow_video: options.allow_video ? options.allow_video : false,
title: options.title ? options.title : 'Custom Title',
message: options.message ? options.message : 'Custom helper message',
};
return cordova.exec(success, fail, "ImagePicker", "getPictures", [params]);