Thanks Anthony

Eliminating buttons:


.btn{
 display: none !important;
}



Eliminating breadcrumb: 

  .w2p_grid_breadcrumb_elem{
 display: none !important;
}

All inside @media print {

}

The magic continue:-)


On Wednesday, December 20, 2017 at 8:13:18 PM UTC+1, Anthony wrote:
>
> Bootstrap includes CSS to print the href values for any links. To disable 
> this just for links within a web2py grid, you can add the following CSS 
> somewhere:
>
> @media print {
>     .web2py_table a[href]:after {
>         content: none !important;
>     }
> }
>
> If you only want to eliminate the URLs from the column headings but leave 
> other URLs within the table, you can use the selector ".web2py_table th 
> a[href]:after". If you want to eliminate more URLs, you can use a more 
> general selector (e.g, "a[href]:after" will get rid of all link URLs 
> anywhere on the page).
>
> Probably we should add some code to web2py-bootstrap3.css to remove some 
> of the URLs from the grid when printing (e.g., headings, pagination links, 
> etc.). If you'd like, open a github issue and link to this thread.
>
> Anthony
>
> On Wednesday, December 20, 2017 at 6:17:13 AM UTC-5, icodk wrote:
>>
>> When in grid or smartgrid trying to print the page with browser's own 
>> print function, columns name comes out as URLS of the page instead of the 
>> text of the name of the column name. 
>> Could be nice to be able to print with browser own print function.
>>
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to