Results 1 to 3 of 3

Thread: Default value for Ext.Msg text field?

  1. #1

    Default Default value for Ext.Msg text field?

    Thanks for reading. I'm using Ext.Msg to get a string from the user:
    Code:
    Ext.Msg.show({
       title:'Issue Descriptions',
       msg: 'Please type in the issue descriptions...',
       buttons: Ext.Msg.OKCANCEL,
       multiline: 300,
       fn: function(btn, text){
            if (btn == 'ok') {
                sIssueDescriptions = text;
            } else {
                //user cancelled
            }
        },
       icon: Ext.MessageBox.QUESTION
    });
    When this is displayed, I want to populate the textarea with the current value of sIssueDescriptions - is there any way I can do this?

    Thanks for any tips
    Chris

  2. #2
    Ext User halkon_polako's Avatar
    Join Date
    Nov 2007
    Location
    Barcelona
    Posts
    193

    Default

    Just add a value config option:
    Code:
    ...
    value:sIssueDescriptions,
    ...

  3. #3

    Default

    thanks - just had a look back to see how i could possibly have missed such an obvious solution and i was looking in the prompt instructions..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •