You can use represent
db.table.field = lambda value, row:
SPAN(value[:10],DIV(value,_class='tooltip'))
and than JS
jQuery(function(){
jQuery('.tootip').each(function(){
var t = jQuery(this);
t.hide().css('position','relative').css('z-index','200');
t.parent.mouseover(function() {t.fadeIn();});
t.parent.mouseout(function() {t.fadeOut();});
});
});
Mind I did not try it.
On Tuesday, 24 September 2013 15:21:31 UTC-5, wb wrote:
>
> With some fields truncated in a grid, it would be nice to show the full
> value in a tooltip when the mouse is over it. Offhand, I think that
> will take a calculated field. Is there an example anywhere? For that
> matter, examples of general examples of grid use would be really nice.
>
> Thanks!
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.