Very helpful. Thanks a bunch.
On Sunday, 19 January 2014 21:05:21 UTC-5, Anthony wrote: > > On Sunday, January 19, 2014 8:09:42 PM UTC-5, horridohobbyist wrote: >> >> Thanks! >> >> Can I ask how you can format individual fields in the grid, say, with >> bold or color attributes? >> > > If the formatting only needs to apply to the field value itself (rather > than the entire table cell), the best approach is to set the "represent" > attribute of the field. To apply CSS formatting to entire table columns, > note the grid includes a <colgroup> with a <col> element for each field. > Each col element has an id in "tablename-fieldname" format, and also > includes a "data-column" attribute holding the column number. There is some > CSS styling that can be applied directly to <col> elements. For other > styling, you can use jQuery to identify the column based on the field name, > then pass the data-column value to an nth-child selector to style the > nth-child TD in each TR. > > Anthony > > -- 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/groups/opt_out.