extjs - Dynamically display a message when text box in clicked -
how dynamically display message when textfield clicked/has value , when delete contents of textfield message must disappear
you can use listeners on textfield. haven't tested following code can try that.
{ xtype: 'textfield', messagetip: undefined, listeners: { afterrender: function(text) { //textfield doesn't have click even't use afterrender put click event on element //u can use text.inputel.on({ aswell input element , not label text.getel().on({ click: function() { //create tip here text.messagetip = ext.create('ext.tip.tip', { //configuration }).show(); } }); }, keypress: function(text) { if (text.getvalue() == '') { //hide message text.messagetip.hide() } } } }