mirror of
https://gitee.com/shuto/cordova-imagePicker.git
synced 2026-07-19 00:00:02 +08:00
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:
+4
-1
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user