webismymind / editablegrid

EditableGrid is an open source Javascript library aimed at turning HTML tables into advanced editable components. It focuses on simplicity: only a few lines of code are required to get your first table up and running.
http://www.editablegrid.net
Other
795 stars 272 forks source link

Adding a class to input / editable field? #120

Open ketan66 opened 8 years ago

ketan66 commented 8 years ago

Is there a way to add a class to the input / editable field? I want to integrate a jquery plugin like 'Bootstrap Material DatePicker' to a time field. This requires to map a selector of the editable field. How can I achieve this?

I have tried using setCellRenderer method, but it add class to TD and not the editable input tag related to it.

setCellRenderer("starttime", new CellRenderer({ render: function(cell, value) { cell.innerHTML=value; $(cell).addClass('timepicker'); } }));

Is there a default Time Picker plugin similar to Datepicker?