doc(actionsheet): update options docs

This commit is contained in:
mhartington 2016-02-24 16:20:16 -05:00
parent c881de41e2
commit e05f901bf3

View File

@ -33,16 +33,20 @@ import {Plugin, Cordova} from './plugin';
export class ActionSheet { export class ActionSheet {
/** /**
* Show the ActionSheet. * Show the ActionSheet. The ActionSheet's options is an object with the following propterties.
* @param {options} options *
* `buttonLabels`: string[] * | Option | Type | Description |
* `title`: string * |-------------------------------|-----------|----------------------------------------------|
* `androidTheme` (Android only): number 1-5 * | title |`string` | The title for the actionsheet |
* `androidEnableCancelButton` (Android only): boolean, default false * | buttonLabels |`string[]` | the labels for the buttons. Uses the index x |
* `winphoneEnableCancelButton` (WP only): boolean, default false * | androidTheme |`number` | Theme to bue used on Android |
* `addCancelButtonWithLabel`: string * | androidEnableCancelButton |`boolean` | Enable a cancel on Android |
* `addDestructiveButtonWithLabel`: string * | winphoneEnableCancelButton |`boolean` | Enable a cancel on Android |
* `position`: [x, y] (iPad pass in [x, y] coords of popover) * | addCancelButtonWithLabel |`string` | Add a cancle button with text |
* | addDestructiveButtonWithLabel |`string` | Add a destructive button with text |
* | position |`number[]` | On an iPad, set the X,Y position |
*
* @param {options} Options See table above
* @returns {Promise} Returns a Promise that resolves with the index of the * @returns {Promise} Returns a Promise that resolves with the index of the
* button pressed (1 based, so 1, 2, 3, etc.) * button pressed (1 based, so 1, 2, 3, etc.)
*/ */