declarations
Version:
[](https://www.npmjs.com/package/declarations)
23 lines (19 loc) • 756 B
TypeScript
// Type definitions for ngCordova Action Sheet plugin
// Project: https://github.com/driftyco/ng-cordova
// Definitions by: Phil McCloghry-Laing <https://github.com/pmccloghrylaing>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
declare namespace ngCordova {
export interface IActionSheetService {
show(options: ShowOptions): ng.IPromise<number>;
hide(): ng.IPromise<void>;
}
export interface ShowOptions {
title?: string;
buttonLabels?: string[];
addCancelButtonWithLabel?: string;
addDestructiveButtonWithLabel?: string;
androidEnableCancelButton?: boolean;
winphoneEnableCancelButton?: boolean;
}
}