|
|||||||
![]() |
|
|
Thread Tools |
|
#1
|
|||
|
|||
|
Will be useful to have built-in grid cell tooltip option support, especially for cells with text which tend to exceed the column width.
|
|
#2
|
|||
|
|||
|
Disregard this post, just realised that the latest svn build passes the td element to the column cell renderer... tooltip setting is now easy. Thanks.
|
|
#3
|
|||
|
|||
|
I need to do exactly this. Please could you post a code fragment to explain how?
|
|
#4
|
|||
|
|||
|
Ideally I need the whole row's data in a tooltip.
|
|
#5
|
|||
|
|||
|
The rows record is sent as the third parameter to the cell renderer (see the paging grid example) so you should be able to build the tooltip from that.
|
|
#6
|
||||
|
||||
|
The second param is a template parameter object. One of the predefined parameter is attr which can be used to add attributes to the cell content element:
function renderFoo(value, p, record){
p.attr = 'title="some tooltip"';
return value;
}
function renderFoo(value, p, record){
p.attr = 'ext:qtip="some tooltip"';
return value;
}
function renderFoo(value, p, record){
p.attr = 'ext:qtip="some tooltip" ext:qtitle="Tooltip Title!"';
return value;
}
|
|
#7
|
||||
|
||||
|
Tried this Jack and it works great except the tooltip is only displayed if the mouse is placed after the data rendered in the cell
__________________
Regards Alex You want it done when !!!! |
|
#8
|
|||
|
|||
|
What would there be to show if you haven't rendered the data in the cell, and it would seem haven't called grid.render yet?
__________________
Tim Ryan - Ext JS Support Team Read BEFORE posting a question / BEFORE posting a Bug Use Google to Search - API / Forum API Doc (3.x | 2.x | 1.x) / FAQ / Wiki / Tutorials / 1.x->2.0 Migration Guide |
|
#9
|
||||
|
||||
|
Not sure what you mean but perhaps I didn't explain to well.
After the grid has been rendered the tooltip is only displayed when the mouse is after the text in the cell.
__________________
Regards Alex You want it done when !!!! |
|
#10
|
||||
|
||||
|
Is your text wrapped in an element by a renderer?
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Customizing Grid Cells | sanmatp | Ext: Help | 9 | 10-08-2009 06:12 AM |
| Icons in grid cells | soad | Ext 1.x: Help | 4 | 10-22-2007 10:22 AM |
| Grid not setting "left" for row cells | davidelias | Ext 1.x: Help | 6 | 04-02-2007 06:03 AM |
| Tooltips on text-only buttons? | fecund | Ext 2.x: Help | 4 | 03-10-2007 09:52 AM |
| Grid Header Tooltips | tryanDLS | Ext: Open Discussion | 7 | 11-28-2006 08:11 AM |