PDA

View Full Version : Tooltip in Ext.Action



maneljn
10 Dec 2013, 8:27 AM
I want to change dynamically the tooltip text in an Ext.Action
How could i do ?



// ---------------------------------------------------------------
// Definir boton accion VER INCIDENCIAS
// ---------------------------------------------------------------
me.incidenciasVerAction = Ext.create('Ext.Action', {
name: 'incidenciasVerAction',
iconCls: 'icono_exclamacion',
text: gt.dgettext('esiacademia','Incidencias'),
tooltip: gt.dgettext('esiacademia','Ver solo facturas con incidencia.'),
disabled: true,
hidden: true,
handler: function(){
// Lanzar evento 'incidenciasVer' del grid pasando el action y el propio grid
this.fireEvent("incidenciasVer", this.incidenciasVerAction, this);
},
scope: me
});

Kevin Jackson
12 Dec 2013, 10:40 AM
Not sure what you are planning to set the tooltip to but have you looked at http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.menu.Item-method-setTooltip