Hi,
I want to set o mask input to a cell (date type) when I’am using cellEdit mode (like spreadsheet). Something like jQuery(el).mask(“99.99.9999″, {placeholder: ” . . “});
If it’s possible, how cand I do this?
Thanks!
Adrian
1 Answers
Hello,
Apologies for the delay.
You can include the JS file:
<script src=”//cdnjs.cloudflare.com/ajax/libs/jquery.mask/0.9.0/jquery.mask.min.js”></script>
and with column definition, set:
$col[“name”] = “phone”;
$col[“editoptions”][“dataInit”] = ‘function() { jQuery(“td.edit-cell [name=phone]”).mask(“000.00”); }’;
where ‘phone’ used in code (2 times) is the column name.
Your Answer