Closed vasilevich closed 7 years ago
Side notes and feature recommendations:
$("div.tabulator-header-filter input").mousedown(function (e) {
e.stopPropagation();
});
perhaps you have a better way, this makes the column still moveable, by dragging anywhere expect for the input.
2. when the table is editable, you should make it editable after a double click, not a single click(or atleast make it optional), I think some tables are too dangerous to edit with a single click, especially mission critical ones.
3. not really important but a date/hour editor would be an interesting feature.
thank you so much for this amazing table, good work!
Hey,
Thanks for getting in touch. Its always great to hear people are enjoying using Tabulator!
In answer to your questions:
Bower Bower will automatically update itself, every day or so it check GitHub for updated libraries and updates itself.
updateOrAddData The reason you are having issues with your updateOrAddData function is because your data does not contain an index field. To use any of the update functions your data must have a unique index field defined so that Tabulator knows what row you are trying to update. By default this field is set to "id", although you can pick any field you want by setting the index option in your table constructor.
Movable Columns I have intentionally not added any stopProagation functionality throughout Tabulator as i wanted to give users the option to control the flow of events throughout the DOM. If the select all on double click is important for your design then feel free to extend any of the editors with the stopProagation function for the desired effect.
Editable Cells Tabulator is designed to be as intuitive as possible and most people seem to find single click easier to work with. If you want to use a double click for your usage case then I would be happy to put together a demo of how you can achieve this.
Datepicker If you want to add a datepicker editor that is no problem at all, there is already some example code in issue #252
I hope that helps you out.
Cheers
Oli
Thank you for your answer!
if you notice I already implemented a way to circumvent this, so this is a no issuse to me, just thought it wasn't right, but if it is intended then thats fine with me!
Thank you! maybe it should be stated in the documentation right besides this new feature? if it already is and I accidently missed it, sorry about that.
yes I would like for you to show me the right way of implementing the double click functionality as I would prefer not to come up with my own hacks and instead learn from the master of this amazing work, whenever you have the time.
Thank you very much! apologizes for not checking in advance.
Thank you so much for your continued support and for this great work!
Hey vasilevich,
On further consideration I think you were right about the header filter input click propagation. I have just pushed a change to the repo to make this change.
I also think having the option to set the event binding that triggers the edit would be useful too, so i will have a look at how i can implement this in an accessible way.
Thanks for your suggestions
Oli
Hey,
Just a quick note to let you know that this feature will be available in the upcoming 3.0 release later in May!
Cheers
Oli
Hey,
You will be happy to hear that version 3.0 is now in beta release, the filter and editor and filter systems have had a complete overhaul. and should now meet your needs
Head over to http://olifolkerd.github.io/tabulator/news/ to see the latest features!
Cheers
Oli
Hi, I know you are about to do it anyway, just a reminder, can you please push version 2.12.0 to bower, I'd like to use the new updateOrAdd feature, after checking directly from git, error in console: TypeError: index is undefined tabulator.js (line 1443, col 7) updateOrAdd feature does not work, here is my js file for you to reproduce:
HTML:
JS:
please also note that the bower version does not have the bootstrap and semantic themes, please add those.
thank you very much!