ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: stoodin on March 28, 2014, 09:55:49 pm
-
Hi guys,
I am trying to have a checkbox on the toolbar that hides columns.
Everything works but I can't add the label to the checkbox. Since I have a 7 checkbox on the toolbar I need to identify them.
The other option is to have a button but I need to change the Label on the button on the click event.
Something like this doesn't show the "Hide Tue' but rather just a checkbox.
{ type: 'checkbox', label: 'Hide Tue', listeners: [
{ "click": function (evt, ui)
{
}
}
]
}
Can you help me, please?
Thank you,
-
label is supported for button only.
you may add a { type: '<span>label of checkbox</span>' }
-
I managed to do it by
{ type: "<label id='lblMon' >Hide Mon </label>"},
{ type:"<input type='checkbox' id='chkMon' checked='checked' onclick='HideMonClm(this);'/>"},
since I need to change the label after the click.
I just thought there is any easy way to do it, but seems like not.
Thank you,