mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-01 02:53:03 +08:00
feat(action-sheet): update to newest version
This commit is contained in:
parent
4bd6aaba2b
commit
9c925806ed
@ -13,6 +13,11 @@ export interface ActionSheetOptions {
|
|||||||
*/
|
*/
|
||||||
title?: string;
|
title?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The subtitle for the actionsheet (IOS only)
|
||||||
|
*/
|
||||||
|
subtitle?: string
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Theme to be used on Android
|
* Theme to be used on Android
|
||||||
*/
|
*/
|
||||||
@ -43,6 +48,10 @@ export interface ActionSheetOptions {
|
|||||||
*/
|
*/
|
||||||
position?: number[];
|
position?: number[];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Choose if destructive button will be the last
|
||||||
|
*/
|
||||||
|
destructiveButtonLast: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -65,10 +74,12 @@ export interface ActionSheetOptions {
|
|||||||
*
|
*
|
||||||
* const options: ActionSheetOptions = {
|
* const options: ActionSheetOptions = {
|
||||||
* title: 'What do you want with this image?',
|
* title: 'What do you want with this image?',
|
||||||
|
* subtitle: 'Choose an action'
|
||||||
* buttonLabels: buttonLabels,
|
* buttonLabels: buttonLabels,
|
||||||
* addCancelButtonWithLabel: 'Cancel',
|
* addCancelButtonWithLabel: 'Cancel',
|
||||||
* addDestructiveButtonWithLabel: 'Delete',
|
* addDestructiveButtonWithLabel: 'Delete',
|
||||||
* androidTheme: this.actionSheet.ANDROID_THEMES.THEME_HOLO_DARK
|
* androidTheme: this.actionSheet.ANDROID_THEMES.THEME_HOLO_DARK,
|
||||||
|
* destructiveButtonLast: true
|
||||||
* };
|
* };
|
||||||
*
|
*
|
||||||
* this.actionSheet.show(options).then((buttonIndex: number) => {
|
* this.actionSheet.show(options).then((buttonIndex: number) => {
|
||||||
@ -83,7 +94,7 @@ export interface ActionSheetOptions {
|
|||||||
plugin: 'cordova-plugin-actionsheet',
|
plugin: 'cordova-plugin-actionsheet',
|
||||||
pluginRef: 'plugins.actionsheet',
|
pluginRef: 'plugins.actionsheet',
|
||||||
repo: 'https://github.com/EddyVerbruggen/cordova-plugin-actionsheet',
|
repo: 'https://github.com/EddyVerbruggen/cordova-plugin-actionsheet',
|
||||||
platforms: ['Android', 'iOS', 'Windows Phone 8']
|
platforms: ['Android', 'iOS', 'Windows Phone 8', 'Browser']
|
||||||
})
|
})
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class ActionSheet {
|
export class ActionSheet {
|
||||||
|
Loading…
Reference in New Issue
Block a user