7.0.6 • Published 2 months ago

@siteapps/capacitor-native-action-sheet v7.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

@capacitor/native-action-sheet

Capacitor plugin for the native action sheet dialog

Install

npm install @capacitor/native-action-sheet
npx cap sync

API

open(...)

open(options: NativeActionSheetOptions) => Promise<NativeActionSheetResponse>

Open new action sheet

ParamTypeDescription
optionsNativeActionSheetOptionsOptions for the actionsheet

Returns: Promise<NativeActionSheetResponse>


Interfaces

NativeActionSheetResponse

PropTypeDescription
cancelledbooleanWas the cancel button pressed
selectedItemnumberSelected item index (starting from null)

NativeActionSheetOptions

PropTypeDescription
itemsNativeActionSheetItem[]Items for the action sheet
themenumberTheme number (android only)
cancelablebooleanIs the action sheet cancelable
cancelableLabelstringLabel for cancel button

NativeActionSheetItem

PropTypeDescription
labelstringLabel for item
styleNativeActionSheetStyleStyle for the item (iOS only)
disabledbooleanIs the item disabled

Enums

NativeActionSheetStyle

MembersValue
DEFAULT"DEFAULT"
DESTRUCTIVE"DESTRUCTIVE"
7.0.6

2 months ago

7.0.5

2 months ago

7.0.4

2 months ago

7.0.3

2 months ago

7.0.2

2 months ago

7.0.1

2 months ago