I am trying to implement a date picker on cell edit. i have tried the below example
https://www.ag-grid.com/javascript-grid-cell-editing/#example-datepicker-cell-editing
This example used jquery-ui datepicker
function getDatePicker() {
function Datepicker() {}
Datepicker.prototype.init = function(params) {
this.eInput = document.createElement("input");
this.eInput.value = params.value;
$(this.eInput).datepicker({ dateFormat: "dd/mm/yy" });
};
Datepicker.prototype.getGui = function() {
return this.eInput;
};
Datepicker.prototype.afterGuiAttached = function() {
this.eInput.focus();
this.eInput.select();
};
Datepicker.prototype.getValue = function() {
return this.eInput.value;
};
Datepicker.prototype.destroy = function() {};
Datepicker.prototype.isPopup = function() {
return false;
};
return Datepicker;
}
This line
$(this.eInput).datepicker({ dateFormat: "dd/mm/yy" });
is used to add jquery-ui datepicker
How can i have a custom DatePicker react component that i want to include instead of jquery-ui datepicker ?