Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8996897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:48:57+00:00 2026-06-15T23:48:57+00:00

I am trying to add a on click listener to the below tooltip. I

  • 0

I am trying to add a on click listener to the below tooltip.
I do not want the tooltip to display on mouse hover. Instead it need it show on button click.
Do I have to add a handler function inside a listener?

{
                    xtype: 'button',
                    cls:'my-btn',
                    iconCls:'question',                     
                    src:'../www/css/slate/btn/question.png',
                    padding: '5 0 0 0',

                    listeners: {


                        render: function(cmp) {
                            Ext.create('Ext.tip.ToolTip', {
                                closable:true,
                                hideDelay : 3000,
                                padding: '0 0 0 0',
                                maxWidth:400,
                                width:800,

                                target: cmp.el,
                                html: "<b>read-only</b>:Users will have read only access to all pages",
                                getTargetXY: function() {
                                    return [810, 340];
                                }
                            });
                        }

                    }


                },
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:48:58+00:00Added an answer on June 15, 2026 at 11:48 pm

    Yes, on click you can show the tooltip programmatically, skip the target and add a showAt():

    ...
    
    listeners: {
        click: function(cmp) {
            Ext.create('Ext.tip.ToolTip', {
                closable:true,
                hideDelay : 3000,
                padding: '0 0 0 0',
                maxWidth:400,
                width:800,
                html: "<b>read-only</b>:Users will have read only access to all pages",
            }).showAt([810, 340]);
    
        }
    }
    

    If you don’t need the automatic hiding (your tooltip is closable anyway) you can make it just an Ext.tip.Tip:

            Ext.create('Ext.tip.Tip', {
                closable:true,
                padding: '0 0 0 0',
                maxWidth:400,
                width:800,
                html: "<b>read-only</b>:Users will have read only access to all pages",
            }).showAt([810, 340]);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently trying to add a click listener to the menu hardware button. Currently
I'm trying to add a $('body').live('click') listener after the user clicks on a div.
I am trying to click a button and add a resistor. So what I
I'm trying to use an array to add a click listener to an existing
I'm trying to add a event listener for clicking and I want to know
I have been trying to add a click listener to every single marker on
Im trying to add click events to shapes within a visio file.. I have
I am trying to add click event to one of the widgets that use
i am trying to add class on on-click jquery event for that i am
I'm trying to add in a double click on a node in the force

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.