It appears to be there already (sqlhtml.py line 2475):
row_buttons = TD(_class='row_buttons',_nowrap=True)
On Sunday, 24 November 2013 04:19:20 UTC-6, step wrote:
>
> Enhancement request: please add class row_buttons to the TH element that
> corresponds to a TD.row_buttons element.
>
> Work-arounds in lie of this feature are possible, as jQuery code, or
> python code involving elements(). But work-arounds need to be repeated for
> each output TABLE() or loaded table component, which is lengthy and
> inconvenient.
>
> Use this new feature to easily hide the button column when printing the
> page, css rule:
> @print { .row_buttons { display:none } }
>
> Currently the above rule hides all rows but the header row, which ends up
> visually displacing all columns relative to their header (when buttons are
> positioned on the left side of the column).
>
> Example jQuery work-around:
> $('web2py_table').each(function(){
> $td=$('td.row_buttons');
> $td.closest('table').find('th').eq($td.index()).addClass('row_buttons');
> });
>
> Open for discussion, 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.