Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternate config storage for jqgrid_rails #2

Open
anithri opened this issue Apr 25, 2012 · 0 comments
Open

Alternate config storage for jqgrid_rails #2

anithri opened this issue Apr 25, 2012 · 0 comments

Comments

@anithri
Copy link

anithri commented Apr 25, 2012

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant