()
| 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; |
no test coverage detected