Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Jul 2012
    Location
    Bangalore
    Posts
    113
    Vote Rating
    0
    kramprabhu is on a distinguished road

      0  

    Default Model panel not hiding in native os

    Model panel not hiding in native os


    Hi

    Here is my code


    var pnl_audio = Ext.Viewport.add( {
    xtype: 'panel',
    modal: true,
    bottom: 0,
    right: 0,
    width: '75%',
    height: '30%',
    layout: {type: 'vbox'},
    itemId: 'pnl_audio',
    id: 'pnl_audio',
    hideOnMaskTap: false,
    items: [
    {
    xtype: 'label',
    flex: 2,
    html: '<center>' + title + '<br>' + menu + '</center>',
    style: 'font-size:15px;font-weight:bold',
    styleHtmlContent: true
    } ,
    {
    flext: 2,
    xtype: 'audio',
    centered: true,
    url: url,
    width: '90%'
    },
    {
    xtype: 'label',
    flex: 2,
    html: 'Playing: ' + record.get('id'),
    style: 'font-size:15px;font-weight:bold',
    styleHtmlContent: true
    },
    {
    xtype: 'button',
    itemId: 'radioClose',
    right: '0px',
    top: '0px',
    ui: 'action-small',
    width: '30px',
    iconCls: 'delete',
    iconMask: true
    }
    ],
    listeners: [
    {
    fn: 'onRadioCloseTap',
    event: 'tap',
    delegate: '#radioClose'
    }
    ],
    onRadioCloseTap: function(button, e, eOpts) {
    console.log('closing audio');
    var audio = button.up().down('audio');
    audio.stop()
    button.up().hide();
    button.up().destroy();
    //pnl = Ext.getC
    }
    });


    pnl_audio.showBy(target);


    -----------

    Issue is this works fine in browser.. but when you do build and run it in simulator (iOS) .. it doesn't execute the button Tap event(onRadioCloseTap) at all. Thats works fine in browser as required.


    Please let me know.. what I am missing.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,672
    Vote Rating
    747
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    This is because onRadioCloseTap is not a valid property on the panel. You would need to extend panel (make your own class) to have that onRadioCloseTap in order for this to work.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar