Results 1 to 5 of 5

Thread: Ext.MessageBox.getTitle() isn't returning a String

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    141

    Default Ext.MessageBox.getTitle() isn't returning a String

    Well the title says is all.
    getMessage() works as described in documentation but getTitle() returns some Object instead of String as defined in documentation.

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379

    Default

    That is the title component (the docked toolbar). We should be creating the component and caching to a different property as to not overwrite the title string.
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  3. #3
    Sencha User
    Join Date
    Jan 2012
    Posts
    141

    Default

    I am sorry I don't quite follow? How do I get message title? Is documentation misleading by saying that this method should return String?

  4. #4
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379

    Default

    A bug has been reported for this. I was just saying what is currently happening and what we should do. To get the title currently, you have to use

    Code:
    Ext.Msg.getTitle().getTitle().getTitle()
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  5. #5
    Sencha User
    Join Date
    Jan 2012
    Posts
    141

    Default

    OK thanks.
    You can close the 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
  •