mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
chore(): update ActionSheet
This commit is contained in:
Vendored
+31
-2
@@ -8,9 +8,38 @@ var plugin_1 = require('./plugin');
|
||||
var ActionSheet = (function () {
|
||||
function ActionSheet() {
|
||||
}
|
||||
ActionSheet.show = function (options) { };
|
||||
/**
|
||||
* Show the ActionSheet.
|
||||
* @param {options}
|
||||
* Available options:
|
||||
* buttonLabels: string[]
|
||||
* title: string
|
||||
* androidTheme (Android only): number 1-5
|
||||
* androidEnableCancelButton (Android only): boolean, default false
|
||||
* winphoneEnableCancelButton (WP only): boolean, default false
|
||||
* addCancelButtonWithLabel: string
|
||||
* addDestructiveButtonWithLabel: string
|
||||
* position: [x, y] (iPad pass in [x, y] coords of popover)
|
||||
* @returns {Promise} returns a promise that resolves with a number indicating
|
||||
* which button was pressed (1 for first, 2 for second).
|
||||
*/
|
||||
ActionSheet.show = function (options) {
|
||||
// This returned Promise is replaced by one from the @Cordova decorator,
|
||||
// but since there's no way for TypeScript to know the return type from a
|
||||
// decorator we provide it. See https://github.com/Microsoft/TypeScript/issues/4881.
|
||||
return new Promise(function (s, e) { });
|
||||
};
|
||||
;
|
||||
ActionSheet.hide = function (options) { };
|
||||
/**
|
||||
* Hide the ActionSheet.
|
||||
* @param {options}
|
||||
*/
|
||||
ActionSheet.hide = function (options) {
|
||||
// This returned Promise is replaced by one from the @Cordova decorator,
|
||||
// but since there's no way for TypeScript to know the return type from a
|
||||
// decorator we provide it. See https://github.com/Microsoft/TypeScript/issues/4881.
|
||||
return new Promise(function (s, e) { });
|
||||
};
|
||||
;
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
|
||||
Reference in New Issue
Block a user