Results 1 to 2 of 2

Thread: How to use Ext.ActionSheet?

  1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    130
    Answers
    4

    Default How to use Ext.ActionSheet?

    I have app\view\TheMenu.js
    Code:
    Ext.define('MyApp.view.TheMenu', {
        extend: 'Ext.ActionSheet',
        items: [
            {
                text: 'Delete draft',
                ui  : 'decline'
            },
            {
                text: 'Save draft'
            },
            {
                text: 'Cancel',
                ui  : 'confirm'
            }
        ]
    });
    And then from the controller I want to show the ActionSheet.

    Code:
    openTheMenu: function() {
        console.log("should be opened");
        MyApp.view.TheMenu().show();
    }
    But it gives me error:
    TypeError: MyApp.view.TheMenu(...).show is not a function

  2. #2
    Sencha User joel.watson's Avatar
    Join Date
    Nov 2014
    Posts
    3,120
    Answers
    446

    Default

    Hi--

    You should add it to the viewport (Ext.Viewport.add(...)), or configure it with fullscreen:true. Please see the example in the documentation here: http://docs.sencha.com/touch/2.4/2.4...xt.ActionSheet

    Thanks!
    Joel

Similar Threads

  1. POPUPS AND ACTIONSHEET
    By pkanyerezi in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 3 Feb 2014, 6:09 AM
  2. ActionSheet issues
    By WagsMax in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 14 Feb 2012, 11:17 AM
  3. [INFOREQ] Actionsheet bug
    By jsveron23 in forum Sencha Touch 2.x: Bugs
    Replies: 1
    Last Post: 9 Feb 2012, 8:38 AM
  4. How to use actionsheet
    By cyberwombat in forum Sencha Touch 2.x: Q&A
    Replies: 6
    Last Post: 14 Nov 2011, 3:03 PM
  5. Help with ActionSheet
    By edeandrea in forum Sencha Touch 1.x: Discussion
    Replies: 7
    Last Post: 15 Sep 2010, 10:49 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •