General Category > Suggest new features

In Render allow jQuery object to be returned

(1/1)

jplevene:
In the colModel>render allow jQuery to be returned and not just a string for the content.

paramvir:
What's the use case and benefit of allowing return of jQuery.

jplevene:
I might want to return something like:


--- Code: ---var  that=this,
      jq = $("<span>", {html"O"})
   .click(function(e){ that.do_something(this); })
   .data("dta", {"id":2, "name":"O"})
   .add(
       $("<span>", {html"X"})
       .click(function(e){ that.do_something_else(this); })
       .data("dta", {"id":2, "name":"O"})
   );

return {jquery: jq};
--- End code ---

I can't do above passing HTML.

Navigation

[0] Message Index

Go to full version