[CLOSED] set window's title problem

  1. #1

    [CLOSED] set window's title problem

    there is a window on a page, when set its'title from code behind
    w_add.Title = "修改文章";
    then , set its's title from js
    var showAddWindow = function() {
                App.w_add.title = '新增文章'; 
                App.w_add.show();
            };
    but the window's title dose not change. why?
    Last edited by Daniil; Oct 15, 2013 at 6:40 AM. Reason: [CLOSED]
  2. #2
    You could try:

    App.w_add.setTitle('新增文章');
  3. #3
    Hello!

    Yes, @blueworld is right. To change the title of already rendered (not hidden, rendered) window you should use method setTitle: http://docs-origin.sencha.com/extjs/...ethod-setTitle
  4. #4
    Quote Originally Posted by Baidaly View Post
    Hello!

    Yes, @blueworld is right. To change the title of already rendered (not hidden, rendered) window you should use method setTitle: http://docs-origin.sencha.com/extjs/...ethod-setTitle
    if the window is closed by clicked close button, how to change its's title?
  5. #5
    The logic should be the same. However, check what value is in closeAction property. It should be Hide: http://docs.sencha.com/extjs/4.2.2/#...fg-closeAction

Similar Threads

  1. Replies: 2
    Last Post: Oct 22, 2012, 1:17 PM
  2. Dynamic window title
    By phillipl in forum 1.x Help
    Replies: 3
    Last Post: Dec 16, 2009, 6:03 AM
  3. Updating window title in js
    By principal_X in forum 1.x Help
    Replies: 5
    Last Post: Jun 08, 2009, 8:25 PM
  4. Window Title Question
    By bruce in forum 1.x Help
    Replies: 3
    Last Post: Mar 09, 2009, 5:21 AM
  5. Window without border, header, title
    By reinaldo.designerdigital in forum 1.x Help
    Replies: 2
    Last Post: Feb 05, 2009, 9:00 AM

Posting Permissions