Checkbox
Checkbox
Dear all
I have the following rows in Editor
"label": "Acount",
"name": "cdo",
"type": "checkbox",
"ipOpts": [
{ "label": "", "value": "1" }
],
"default": 0
But I need it readonly, just need to show the state of the field with the checkbox. ¿Is that possible? ¿how?
Thanks to all
I have the following rows in Editor
"label": "Acount",
"name": "cdo",
"type": "checkbox",
"ipOpts": [
{ "label": "", "value": "1" }
],
"default": 0
But I need it readonly, just need to show the state of the field with the checkbox. ¿Is that possible? ¿how?
Thanks to all
This discussion has been closed.
Replies
[code]
$('input', editor.node( 'cdo' )).prop( 'readonly', true );
[/code]
Allan
I did also include this in the table
{ "mData": "contabilizado", "mRender": function (data, type, full ) {
if (data == 1)
{
return '';
}
else
{
return '';
}
}
}
and works ok, just for someone else need the same support