Results 1 to 2 of 2

Thread: Binding fields in MessageBox

  1. #1
    Sencha User
    Join Date
    Aug 2014
    Posts
    21

    Default Binding fields in MessageBox

    I'm trying to bind the texts of a confirm box, like this:

    Code:
    Ext.MessageBox.show({
        bind: {
            title: '{title}',
            msg: '{message}'
        },
        buttons: Ext.MessageBox.OKCANCEL,
        icon: Ext.MessageBox.WARNING,
        scope: this,
        fn: function(btn) {
            if(btn == 'ok') {
                // myFunction();
            } else {
                return;
            }
        }
    });
    But passing binding like this doesn't work.

    Any ideas?

  2. #2
    Sencha User
    Join Date
    Mar 2012
    Location
    Lawrence, KS
    Posts
    462
    Answers
    65

    Default

    I don't think you'll be able to do that exactly because the show method doesn't contain binding configurations. That said, you can certainly bind your values on an Ext.window.MessageBox.

    Here's an example:
    https://fiddle.sencha.com/#fiddle/isf

    Thanks!
    Greg

Tags for this Thread

Posting Permissions

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