What about : grid.element(_title='Add record to database', _class="btn btn-primary')
Or you may try with _style='background: blue;' Though, would be better with the first option because the whole button style with be manage by bootstrap properly... Changing only background color will result it pour visual effect. Good luck! Richard On Mon, Jan 11, 2016 at 3:39 PM, Ron Chatterjee <achatterjee...@gmail.com> wrote: > It works Anthony. Thank you. You happen to know how to change the color or > the box to blue? lol. > > > On Friday, January 8, 2016 at 5:42:27 PM UTC-5, Anthony wrote: >> >> Unfortunately, that's hard coded. You can do: >> >> grid = ... >> addspan = grid.element(_title='Add record to database') >> addspan[0] = 'Add Projects' >> addspan['_title'] = 'Add project to database' >> >> Anthony >> >> On Friday, January 8, 2016 at 5:17:17 PM UTC-5, Ron Chatterjee wrote: >>> >>> having create=True in smartgrid creates and button +Add Record which >>> allows users to create new tables. Any parameter I can pass to smartgrid >>> that will change the wording +Add Record to +Add Projects or +Add New >>> Member...or whatever user specify? Ofc I can do it externally in my >>> view {{=A('Add New Member',_href=URL('add_new_member'),_class="btn >>> btn-primary")}}. But that creates an extra button on the top of the table. >>> Wondering if I can change it directly in the smartgrid. >>> >>> >>> >>> -- > 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. > -- 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.