How To Create A Widget?
How To Create A Widget?
Hi Sir...
I'm new here and i wanted to make a grid widget but i don't know where to start... i developed some php classes (datagrid and database connector) but when i looked at the jquery code... I was shocked coz its different (or maybe i'm still a newbie in oop haha).. see, i wanted to convert my php datagrid to jquery datagrid for faster searching and column re-ordering... I would like my code to look like this
- $("#grid").grid({
- hideColumn: "UserId, HouseId",
- addControl: {
- "button": function(){
- $(this).name("btnViewInfo");
- // this is the row control at the end
- // this button should get any value of any column in its row only
- // example $(this).get("UserId");
- },
- "checkbox": function(){
- $(this).name("btnCheckRow");
- // this the row control at the beginning used for dynamic delete and update purposes
- // same as above
- }
- },
- formatColumn: {
- "ColumnName": function(){
- // lets say you have a column "Price" that looks like $1000.00
- // and you want it to look like $1,000.00
- // format column will do this...
- }
- }
- });
I still got some ideas but i don't know where to start...
Please Post your "Jquery Widget How to?" tutorial here ^___^
I really really really wanted to learn how to do this thanks...