Results 1 to 3 of 3

Thread: actionsheet modal, topbar button still works

  1. #1
    Sencha User
    Join Date
    Jun 2010
    Posts
    45

    Default actionsheet modal, topbar button still works

    Hi, i've a view with a top bar that contains two button (back and favorites), and an actionsheet that slideup from bottom when i push one button on the view, the actionsheet is modal:


    PHP Code:
    var contactSheet = { 
                  
    xtype'actionsheet',  
                  
    hiddentrue,
                  
    modaltrue,
                  
    id'contactSheet'
                  
    showAnimation: {type'slide'direction'up'}, 
                  
    items: [
                        {
                            
    html'text',
                            
    styleHtmlContenttrue,
                            
    id'callButton' 
                       
    },
                       {
                            
    text'email',
                            
    styleHtmlContenttrue,
                            
    id'emailButton'
                       
    }, 
                      {  
                           
    text'Cancel'
                           
    ui  'confirm'
                      
    }
                    ]   
             } 
    the problem is, when the actionsheet the topbar button is still operative, if i click back, the related action starts, is there a way to disable all controls until actionsheet is visible?

    thanks

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,451
    Answers
    3997

    Default

    Using the KitchenSink and going to the overlays, tap on the actionsheet button to open the actionsheet and it happens faster than I can click on anything and when the modal is shown I cannot tap on any buttons under it.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Jun 2010
    Posts
    45

    Default

    Hi Mitchell, thanks for your response.
    Probably i've made mistakes in question (forgive my bad english).
    The problem is that the topbar button are still active even if the actionsheet is showed,
    i attach a jpg to explain better this behaviour.

    sim.png


    if you click the top left button (LISTA) or the right one, they do their work, i want disable they
    until i click ANNULLA on the sheet or i push one button on the sheet.
    The bottom bar button are also active.

    thanks

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
  •