1. #1
    Sencha Premium Member
    Join Date
    Oct 2011
    Location
    Paris, France
    Posts
    187
    Vote Rating
    3
    olouvignes is on a distinguished road

      0  

    Default My first ST2.0 plugin : MessageBox aka (native popup for everyone)

    My first ST2.0 plugin : MessageBox aka (native popup for everyone)


    MessageBox is a plugin that overrides `Ext.MessageBox` class from core.

    The idea is to provide equivalent native implementation when available.
    But you should not have to rewrite a single line of code:

    I've written a phonegap plugin that does exactly that for Phonegap!

    https://github.com/mgcrea/phonegap-p...one/MessageBox

    There is a pull request ongoing so that it can join the official plugin repo.

    You can find the sencha-touch plugin below :

    https://github.com/mgcrea/sencha-tou...pMessageBox.js

    Hope it helps,
    Regards,
    Olivier

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,620
    Vote Rating
    817
    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


    I wouldn't have used the Ext.plugin namespace. What happens if we start using that namespace and now you could have a conflict. (Yes, we will be starting off with two plugins available in the library) Most people use the Ext.ux namespace.
    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.

  3. #3
    Sencha Premium Member
    Join Date
    Oct 2011
    Location
    Paris, France
    Posts
    187
    Vote Rating
    3
    olouvignes is on a distinguished road

      0  

    Default


    Didn't know that, i've switched to Ext.ux instead. thanks.

Thread Participants: 1

Tags for this Thread