ParamQuery grid support forum

General Category => Suggest new features => Topic started by: jplevene on May 02, 2024, 12:55:27 am

Title: In Render allow jQuery object to be returned
Post by: jplevene on May 02, 2024, 12:55:27 am
In the colModel>render allow jQuery to be returned and not just a string for the content.

Title: Re: In Render allow jQuery object to be returned
Post by: paramvir on July 31, 2024, 04:20:17 pm
What's the use case and benefit of allowing return of jQuery.
Title: Re: In Render allow jQuery object to be returned
Post by: jplevene on October 29, 2024, 11:22:26 pm
I might want to return something like:

Code: [Select]
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};

I can't do above passing HTML.