DTE and Jquery Mask plugin

DTE and Jquery Mask plugin

x14841003x14841003 Posts: 33Questions: 9Answers: 0

Hi again

I'm looking for an easy example of usage of DTE with JQuery Mask plugin (http://igorescobar.github.io/jQuery-Mask-Plugin/)

The example here did not help me at all, I tried to replicate and it did not work :
https://editor.datatables.net/plug-ins/field-type/editor.mask

From this link :
https://editor.datatables.net/plug-ins/field-type/

I have tried to put :

fields : [ {
label: "employee_id",
name: "employee_id",
mask: "00"
}]

And it does not work either.

I just would like one column in my DTE to be only float or let's say numeric only.

If you have a working example that would help me a lot.

Thanks again !
x1484

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,142Questions: 1Answers: 2,586
    edited October 2019 Answer ✓

    Hi @x14841003 ,

    You need to also specify that the field is type: 'mask', see the example on the last link you posted. You also need both the DTE extension and the jQuery Mask plugin included in the sources.

    If that doesn't help, let me know,

    Cheers,

    Colin

  • x14841003x14841003 Posts: 33Questions: 9Answers: 0

    Hi Colin

    It helped !

    Thanks again !
    x1484

This discussion has been closed.