KeyTable is not working

KeyTable is not working

GeaGea Posts: 33Questions: 13Answers: 1

Hello, i'm trying to use KeyTable on my Datatable but it is not working.
My code:
$( document ).ready(function() {

var tabla = $('#example').dataTable({
    "ajax": "data.json",

    keys: true,




    "columns": [
        {"data": "NIF/NIE"},
        {"data": "1er Apellido"},
        {"data": "2do Apellido"},
        {"data": "Nombre"},
        {"data": "Sexo"},
        {"data": "Fecha Nacimiento"},
        {"data": "Fecha Contrato"},
        {"data": "Demandante empleo larga duracion"},
        {"data": "Tipo Contrato"},
        {"data": "% Jornada"},
        {"data": "Discap"},
        {"data": "Causas Archivo"},
        {"data": "Aut SCSP"},
        {"data": "Imp Solic"},
        {"data": "Sust"}


    ],


    columnDefs: [
            { type: 'chinese-string', targets: 3  } ,
            { type: 'numeric-comma', targets: 7 },
            { type: 'numeric-comma', targets: 7 },

] ,

   "language": {
        "decimal":",",
        "thousands": "."
      }



} 
);

});

and my libraries
type="text/javascript" language="javascript" src="//code.jquery.com/jquery-1.12.0.min.js"

type="text/javascript" language="javascript" src="https://cdn.datatables.net/1.10.11/js/jquery.dataTables.min.js"

type="text/javascript" language="javascript" src="https://cdn.datatables.net/keytable/2.1.1/js/dataTables.keyTable.min.js"

type="text/javascript" src="http://cdn.datatables.net/plug-ins/1.10.11/sorting/chinese-string.js"

Datatable is working perfectly, just Keytable is not working.
Any ideas?
Thanks

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.