Pickadatejs
Pickadatejs
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
This discussion has been closed.
Answers
I like it! Thnaks for linking me to it. I'll look at providing a plug-in for Editor.
Regards,
Allan