Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

222
Views
How to add Tooltip in Combobox , not in Items in Ext Js

I want to add a tooltip on a disabled combobox which should show all the list values of the combobox and also selected value should be in bold in the tooltip in EXTJS.

Can someone please help me with this

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You did not leave a lot of information. In modern you might want to listen to the painted event, in classic the render event and fill your tooltip.

Just be aware, that if you have a data-binding for the store, the data might not be available at the time. Further if it is not filled with static data, you have to go for the load event of the store.

Here is an example for modern:

    items: [{
        xtype: 'combobox',
        label: 'Choose State',
        queryMode: 'local',
        displayField: 'name',
        valueField: 'abbr',
        disabled: true,

        store: [
            {abbr: 'AL',name: 'Alabama'},
            {abbr: 'AK',name: 'Alaska'},
            {abbr: 'AZ',name: 'Arizona'}
        ],
        listeners: {
            painted: function() {
                let tooltip = '';
                    data = Ext.Array.pluck(this.getStore().getData().items, 'data');
                
                Ext.Array.each(data,function(set) {
                    tooltip += set.name + '<br>'
                });
                
                this.setTooltip(tooltip);
            }
        }
    }]

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!