Or better the dictionary should be tied in the layout(.html) somehow. I think it would better than polluting the web2py core with time limited data... it could be a javascript / javascript variable that should set the right class names in layout scope. So people do not need to search and replace in all their code if new layout is applied.
2012. június 6., szerda 17:25:40 UTC+2 időpontban LightDot a következőt írta: > > Quite right, I forgot that the grids are experimental. Sorry, I was too > quick to comment in regards to backward compatibility. I missed the scope > of the issue anyway, since if I remember right, "ui" setting for the grid > is already defined as a dictionary in sqlhtml.py. With definitions such as > button='button', etc. > > So you are suggesting a new ui dictionary, predefined for the bootstrap? > Similar to the jquery-ui dictionary that is already in the sqlhtml.py? I > should have realized that sooner... And it's a great idea, of course. > > Regards > > > On Wednesday, June 6, 2012 3:57:40 PM UTC+2, szimszon wrote: >> >> SQLFORM.grid and .smartgrid is experimental... >> >> If grid and smartgrid will use the button and buttontext class for >> buttons in grid with new app you have to add this class definition back >> manually to the new look&feel layout :( >> >> What if grid and smartgrid can access some resource in app layout system >> with class names and can adopt to the new underlying css system. >> >> 2012. június 6., szerda 15:30:08 UTC+2 időpontban LightDot a következőt >> írta: >>> >>> I don't have a personal preference about this since I'm not using these >>> selectors in any project. But even if the default css doesn't use them, >>> some developer could already be using them for custom css definitions. >>> >>> So wouldn't this break backward compatibility of web2py? >>> >>> Regards >>> >>> On Wednesday, June 6, 2012 2:37:51 PM UTC+2, szimszon wrote: >>>> >>>> Hi! >>>> >>>> I wonder if somebody could help to clean up sqlhtml.py's grid web2py >>>> style because there are buttons with 'button' and 'buttontext' class but >>>> the css have no visible definition for it. It should be 'btn' or something. >>>> >>>> I opened an issue about it in google code: >>>> >>>> http://code.google.com/p/web2py/issues/detail?id=840 >>>> >>>> Thanks. >>>> >>>

