ParamQuery grid support forum
General Category => Help for ParamQuery Grid (free version) => Topic started by: ticheng on February 14, 2017, 09:15:57 am
-
I am using pqgrid v2.0.4. In my toolbar, I want to add a checkbox. When it is checked, it filters the result. When it is unchecked, it removes the filter. It works fine. However, I would also add some text beside it, and I tried something like this:
{
type: "checkbox",
label: "Show Active Only",
icon: " ui-icon-search",
listeners: [
{
"change": function() {
console.log($(this).is(':checked'));
}
}
]
}
But this does not work. Would any one know how to add the label / text beside this checkbox?
Thanks,
Tim
-
label property is supported in Pro only.
In free version, label can be added by using a separate label.
{ type: "<label for='wrapText'>Wrap Text</label>" }
Example: https://paramquery.com/demos/freeze_columns
-
Thank you. It works fine.