Answered my own question: SQLFORM.grid(ui={...}) So either solution is fine.
On Monday, 4 December 2017 16:45:38 UTC, tim.n...@conted.ox.ac.uk wrote: > > Since I use fa icons all over the place, and do a fair bit of styling on > top of the w2p css, I'd sooner see 'fa fa-{name}' rules. Not as clean as > .icon, I admit, but it makes it easier for global rules to affect the grid. > Is it possible to pass a dict of custom icon class strings to the grid, so > 'icon icon-plus' is the default, but can be replaced by 'fa fa-plus'? > > On Sunday, 3 December 2017 17:41:34 UTC, Massimo Di Pierro wrote: >> >> In the old days of BS2 we used "icon icon-{name}" for icons. then to >> support BS3 we also added "glyphicon glyphicon-{name}". now we use BS4 and >> there are no more icons we have to use Font Awesome so we should add "fa >> fa-{name}". I can easily add this to sqlhtml.py and we will all be fine but >> we will have a proliferation of classes. Another option is to use define >> .icon and .icon-{name} for those classes that we use in the grid in terms >> of font awesome icons and add them to web2py-bootstrap4.css. >> >> Preferences? >> >> -- 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.