ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: NearEarthObject on August 18, 2023, 10:31:41 pm
-
Hi
on https://paramquery.com/pro/api#option-column-title
It is say that Title or Heading of the column. It can be a callback that returns html to be displayed as column title.
I have been trying different way to use a callback function without success.
And I can(t find nowhere a clear exmple,
Is there a way to get one ?
Thank in advance.
-
{
//title: "Product ID",
//title using callback.
title: function( ui ){
return "Product ID from callback";
},
dataType: "integer", dataIndx: "ProductID", editable: false, width: 80
},
where ui is plain object having properties column and colIndx
context "this" of the callback is grid instance.
-
Work liike a charm !
Much thanks !!