17 Dec 2012 6:19 AM #1
textfield with icon question
I need to add an icon question at the end of the textfield and assign at this it a tooltip with "my text"
I use Sencha Architect and ExtJs 4.1.3.
19 Dec 2012 8:06 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
Without being able to dig too deep into an override (since you're in Architect) then you can create a container using hbox layout and have the field and a component where component is the icon.
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
19 Dec 2012 8:12 AM #3
I resolved... on the afterrender of the component I use this funcion:
var idInfo= cmp.id+'_info';
cmp.bodyEl.insertHtml('afterEnd','<span class="icon-info" id="'+idInfo+'"></span>');
var myTootlip= Ext.getCmp('ToolTip'+id);