Pickadatejs

Pickadatejs

INTONEINTONE Posts: 153Questions: 58Answers: 6
edited October 2014 in Editor

I got pickadate js to work with editor. I prefer pickadate over the other plugin options. You can check out pickadate js here: http://amsul.ca/pickadate.js/

this is my simple code:

include your necessary js and css files, then:

create a regular field as usual but add an id to it:

      {
              label: "Incident Date:",
                name: "cases.date_of_incident",
               id:"pickDate"

     },


    $('#view_cases_details').DataTable( {
       dom: "Tfrtip",
       ajax: {
        url: "some_url.php",
        type: "POST"
       },
       serverSide: true,
        columns: [
          // list columns
        ],


    //important here
    initComplete: function ( settings, json ) {
        setTimeout(function(){
            $("#pickDate").pickadate();
        }, 2000);


     }


   } );

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Answer ✓

    I like it! Thnaks for linking me to it. I'll look at providing a plug-in for Editor.

    Regards,
    Allan

This discussion has been closed.