tabalinas / jsgrid

Lightweight Grid jQuery Plugin
http://js-grid.com
MIT License
1.53k stars 353 forks source link

How does the editTemplate in the Custom Field work? #1396

Open RevealedFrom opened 3 years ago

RevealedFrom commented 3 years ago

I refer to the following in the Custom Field section of the documentation:

    editTemplate: function(value) {
        return this._editPicker = $("<input>").datepicker().datepicker("setDate", new Date(value));
    },

Is _editPicker a hardcoded name referenced internally by jsGrid?

In $("<input>"), which <input> control is selected? If my page has many <input>'s, could the wrong one be selected?