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
    St. Louis, MO
    Posts
    34,121
    Vote Rating
    453
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      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
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    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 almost 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.

Tags for this Thread