ionic action sheet

Solutions on MaxInterview for ionic action sheet by the best coders in the world

showing results for - "ionic action sheet"
Thomas
26 Feb 2020
1import { Component } from '@angular/core';
2import { ActionSheetController } from '@ionic/angular';
3
4@Component({
5  selector: 'action-sheet-example',
6  templateUrl: 'action-sheet-example.html',
7  styleUrls: ['./action-sheet-example.css'],
8})
9export class ActionSheetExample {
10
11  constructor(public actionSheetController: ActionSheetController) {}
12
13  async presentActionSheet() {
14    const actionSheet = await this.actionSheetController.create({
15      header: 'Albums',
16      buttons: [{
17        text: 'Delete',
18        role: 'destructive',
19        icon: 'trash',
20        handler: () => {
21          console.log('Delete clicked');
22        }
23      }, {
24        text: 'Share',
25        icon: 'share',
26        handler: () => {
27          console.log('Share clicked');
28        }
29      }, {
30        text: 'Play (open modal)',
31        icon: 'arrow-dropright-circle',
32        handler: () => {
33          console.log('Play clicked');
34        }
35      }, {
36        text: 'Favorite',
37        icon: 'heart',
38        handler: () => {
39          console.log('Favorite clicked');
40        }
41      }, {
42        text: 'Cancel',
43        icon: 'close',
44        role: 'cancel',
45        handler: () => {
46          console.log('Cancel clicked');
47        }
48      }]
49    });
50    await actionSheet.present();
51  }
52
53}
queries leading to this page
ionic action sheet buttonionic 4 action sheet with listionic action sheet stylingaction sheet in ionicionicactionsheet decoratorvalid options of the action sheet style in ionicion action sheet headerdynamic action sheet ionic 4action sheet ionic selectedaction sheet buttons ionic 5ionic 4 custom action sheetactionsheet ionic 5ionic 4 action sheet exampleaction sheet ionic add componentvalid options of the action sheet create method in ionicactionsheet ionicionic create action sheetdynamic action sheet ionicion action sheetionic 3 exampleaction sheet content ionicactionsheetoriginal ionicaction sheet default cancel button custom ionicionic with excelsheetactionsheetionic action sheet button typeionic action sheet roleionic framework action sheetaction sheet ionicaction sheet controller ionic 4 methodsionic action sheet button sampleion action sheet slide downionic action sheet controller exampleclose ion action sheet with slideion tabs open action sheetionic actionsheet examplesionic action sheet exampleionic action sheet style applyactionsheet in ionic 5ionic action sheet inputionic action sheet button clickion action sheet ionic componentionic action sheet how to use md ionionic actionsheetionic action sheetnavigation using ionic action sheethow to get action sheet ionic 5valid options of the action sheet controller in ionicionic action sheet with inputactionsheet ionic custom contention action sheet instagramionic action sheet custom htmlion action sheetinterface action sheetangular ionic action sheetion action sheet exampleactionsheetcontroller ionic 5ionic action sheet