You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The whole idea is that a standard configuration is stored in application_grid.yml, and model or controller specific code is stored in another .yml file which is read into a Grid class.
The class combines model specific options with the general options, and columns can be assigned types that have their own config. All of your config is done in the yml file (even callbacks to a certain extent using the RawJS class.)
Instances of the grid class are created and used in the controller.
This allows for extremely quick setups of additional grids.
There are still many things that could be done to more tightly bind the configuration piece and the rest of jqgrid_rails, but I'm in the middle of a project atm and need to finish that soonest.
The text was updated successfully, but these errors were encountered:
Code laid out at https://gist.github.com/2493365
The whole idea is that a standard configuration is stored in application_grid.yml, and model or controller specific code is stored in another .yml file which is read into a Grid class.
The class combines model specific options with the general options, and columns can be assigned types that have their own config. All of your config is done in the yml file (even callbacks to a certain extent using the RawJS class.)
Instances of the grid class are created and used in the controller.
This allows for extremely quick setups of additional grids.
There are still many things that could be done to more tightly bind the configuration piece and the rest of jqgrid_rails, but I'm in the middle of a project atm and need to finish that soonest.
The text was updated successfully, but these errors were encountered: