MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / openActionSheet

Method openActionSheet

core/src/components/select/select.tsx:715–739  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

713 }
714
715 private async openActionSheet() {
716 const mode = getIonMode(this);
717 const interfaceOptions = this.interfaceOptions;
718 const actionSheetOpts: ActionSheetOptions = {
719 mode,
720 ...interfaceOptions,
721
722 buttons: this.createActionSheetButtons(this.childOpts, this.value),
723 cssClass: ['select-action-sheet', interfaceOptions.cssClass],
724 };
725
726 /**
727 * Workaround for Stencil to autodefine
728 * ion-action-sheet when
729 * using Custom Elements build.
730 */
731 // eslint-disable-next-line
732 if (false) {
733 // eslint-disable-next-line
734 // @ts-ignore
735 document.createElement('ion-action-sheet');
736 }
737
738 return actionSheetController.create(actionSheetOpts);
739 }
740
741 private async openAlert() {
742 const interfaceOptions = this.interfaceOptions;

Callers 1

createOverlayMethod · 0.95

Calls 3

getIonModeFunction · 0.90
createMethod · 0.65

Tested by

no test coverage detected