Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
wiki:custom_formatter [2009/10/18 09:50] tony |
wiki:custom_formatter [2009/11/28 08:07] 127.0.0.1 external edit |
||
---|---|---|---|
Line 59: | Line 59: | ||
... | ... | ||
}); | }); | ||
- | function myunformatfunc ( cellvalue, options) | + | function myunformatfunc ( cellvalue, options, cellobject) |
{ | { | ||
// do something here | // do something here | ||
Line 68: | Line 68: | ||
To the custom unformat function are passed the following parameters: | To the custom unformat function are passed the following parameters: | ||
- | * cellvalue - is the value to be unformated. | + | * cellvalue - is the value to be unformated (pure text). |
* options - is an object containing the following element | * options - is an object containing the following element | ||
* options : { rowId: rid, colModel: cm} where rowId - is the id of the row colModel is the object of the properties for this column getted from colModel array of jqGrid | * options : { rowId: rid, colModel: cm} where rowId - is the id of the row colModel is the object of the properties for this column getted from colModel array of jqGrid | ||
+ | * cellobject - is a jQuery cell object. This object can be used to obtain different things from the cell element - by example jQuery(cellobject).html() can be used to get the html content instead of the text. | ||
===== Example ===== | ===== Example ===== |