Hybrid View

  1. #1
    Sencha User
    Join Date
    Oct 2007
    Location
    Berlin, Germany
    Posts
    891
    Vote Rating
    9
    wm003 will become famous soon enough

      1  

    Default Ext.MessageBox.promptCombo, .promptRadio, .promptCheckbox

    Ext.MessageBox.promptCombo, .promptRadio, .promptCheckbox


    prompts.gif

    I added the ability to also have comboxes, checkboxes or radiobuttons to choose from where you usually would use Ext.MessageBox.prompt.

    The additional functions are

    Ext.MessageBox.promptCombo
    Ext.MessageBox.promptCheckbox
    Ext.MessageBox.promptRadio

    Calling them is easy as you would do it the usual way with .prompt. Just add 2 Parameters: scope and a configObject (according to the desired widget: comboconfig for promptcombox like you would pass to a combobox, radiogroup config for promptradio and checkboxgroup-config for promptcheckbox.

    Find a zip attached with a full working demo file (drop it where ext-all-debug.js resides) and a diff for ext-all-debug.js (3.4.0). As Ext.Messagebox.prompt could not be overriden the usual way you need to modify the library.

    i could upload patched versions of ext-all and ext-all-debug , but i am not sure, if that is allowed by sencha

    promptcombo_radio_checkbox.zip

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


    Thanks for the continued contribution!
    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

  4. #4
    Ext JS Premium Member Joyfulbob's Avatar
    Join Date
    Feb 2008
    Posts
    176
    Vote Rating
    1
    Joyfulbob is on a distinguished road

      0  

    Default


    Nice!

    I know of several apps we can use this!