Results 1 to 6 of 6

Thread: Tool tip as 'close' on cross button in a window

  1. #1
    Sencha User
    Join Date
    Sep 2010
    Posts
    6

    Default Tool tip as 'close' on cross button in a window

    Please give me some idea to put a Tool tip as 'close' on cross button in a window.

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246

    Default

    Code:
    win.on('render', function(c){
      Ext.QuickTips.register({
        target: c.tools['close'],
        text: 'Close'
      });
    });

  3. #3
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,892

    Default

    Use closable: false, and put your own tool there using the tools config.

  4. #4
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246

    Default

    In that case you will also need to attach your own Esc key handler.

  5. #5
    Sencha User
    Join Date
    Sep 2010
    Posts
    6

    Default

    Thanks a lot,
    it is working fine.

  6. #6
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,892

    Default

    Yes, your solution is better. The standard tools should come with tooltips, overridable in locale files.

Similar Threads

  1. Want to add tool tip on tab panel's close icon
    By ravigupta84 in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 9 Sep 2010, 4:23 AM
  2. Replies: 0
    Last Post: 14 Feb 2010, 10:29 PM
  3. adding tool tip for dialog button
    By ligesh in forum Ext 1.x: Help & Discussion
    Replies: 5
    Last Post: 5 Sep 2007, 6:06 AM

Posting Permissions

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