Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

224
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda