Introducting
Open JS Grid v2
Title | Price | TutorialID | CategoryID | Active |
---|
Title | Price | TutorialID | CategoryID | Active |
---|
Open JS Grid comes with a mysql class so you don't have to do any database work yourself. Checkout the examples below on how to do what normally would be complex database queries.
Basic grid functionality here, you can sort columns, filter existing data, and resize the columns. You can also resize the grid. Along with that, if you resize the grid down small enough, it adjusts to fit small sizes.
Now you can make your own cell types for money, buttons, whatever alteration to data you want.
Turn on editing to edit cells. They can be text boxes, checkboxes, or even drop downs. Drop downs can even use data from other database tables.
You can do complex mysql things like where, join, concat, group, having and more. Its all completely customizable in your ajax php file.
The pager is smart. It can page through one at a time, page via a slider, or even type in the page you want. Searching is also smart. When you type, it live searches the current data. When you hit enter, it will search that query on the database.
All the CSS for the grid is written with Styuls. It's awesome.
I wrote this pluging to teach, not just provide a plugin. So please go into the code, tear it apart, read through it, play with it. There was a lot to learn here, so I hope you will learn something too.
Open JS Grid 2 is now completely OOP. Written against a really cool (soon to be release) library called RootJS.
Everybody seems to love twitter bootstrap for generic styles. So Open JS Grid includes and integrates with all those standard classes.
Instead of having built in callbacks, we have events that fire on the jQuery object. So you can bind to as many grid events as much and whenever you want.
This time around, the grid is built with Columns instead of rows. That makes for much much faster use in most cases.
customerName | First Name | Last Name |
---|
customerName | First Name | Last Name |
---|
Image link | Linking from another column | Linking this column | Linking a col not in the table |
---|
Title | Drop down from another table | Hardcoded drop down |
---|
Title | Price | HashBang |
---|
customerName | First Name | Last Name |
---|
customerName | Last Name |
---|
$grid->render($selects)
Where $selects is your assoc array of name/value pairs.