KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm trying to create some kind of reusable formatter for jqGrid column, I would like to create custom formatter where I'm able to pass additional data , something similar to this code: function imageLinkFormatter(cellval,options,rowObject,icon,link_class,link_action){ var img='<span class="ui-icon '+icon+' icon"><span/>'; var link='<a href="#'+link_action+'/id/'+rowObject.id+'" class="'+link_class+'" rel="'+rowObject.id+'">'+img+'</a>'; return link; }
Tags (comma-separated)
Save Edits
Cancel