mask input for cell (date type) when I'm in cellEdit mode

Questionsmask input for cell (date type) when I'm in cellEdit mode
Adrian asked 6 years ago

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
Abu Ghufran Staff answered 6 years ago

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.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

14 + 17 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?