> I agree with this post subject about bootstrap killing web2py, i use > web2py in 4 different projects using CSS framewors like materialize, > material design lite and material-ui and its really hard to use things like > SQLFORM.smartgrid because it has the classes hardcoded, maybe this can be > updated and made it fully configurable to allow it to be used with other > CSS frameworks?. >
Nothing is hardcoded, and it is already configurable. All of the Bootstrap classes are added via the existing "ui" argument, which defaults to the following dictionary: ui = dict(widget='', header='', content='', default='', cornerall='', cornertop='', cornerbottom='', button='button btn btn-default', buttontext='buttontext button', buttonadd='icon plus icon-plus glyphicon glyphicon-plus', buttonback='icon leftarrow icon-arrow-left glyphicon glyphicon-arrow-left', buttonexport='icon downarrow icon-download glyphicon glyphicon-download', buttondelete='icon trash icon-trash glyphicon glyphicon-trash', buttonedit='icon pen icon-pencil glyphicon glyphicon-pencil', buttontable='icon rightarrow icon-arrow-right glyphicon glyphicon-arrow-right', buttonview='icon magnifier icon-zoom-in glyphicon glyphicon-zoom-in', ) Just provide your own dictionary to use a different set of classes on the elements. Also, please read the earlier posts in the thread. Nothing is dependent on Bootstrap, and all of the server-side code that generates UI (such as SQLFORM, MENU, auth.navbar, and the grid) was developed before Bootstrap even existed. It is also silly to suggest Bootstrap is "killing" web2py (presumably in favor of alternative frameworks) when other frameworks don't even offer functionality such as the grid. Even if the grid were not configurable, you would be no better off by going to another framework (that has no grid to begin with). Also, note that SQLFORM and the existing grid will likely be deprecated by new functionality that is in development. 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/d/optout.