vue-virtual-table icon indicating copy to clipboard operation
vue-virtual-table copied to clipboard

date formatting & sorting

Open sangermann opened this issue 3 years ago • 5 comments

Hi, thank you very much for your great work - this vue component truely rocks! Is there a way to use a date column with formatted cell display (without template slot-scope) so that it is still sortable?

sangermann avatar Nov 19 '21 15:11 sangermann

You can format the date to string like YYYY-MM-DD and set the corresponding prop config with sortable: true.

waningflow avatar Nov 20 '21 07:11 waningflow

Yes, but I need it formatted with DD.MM.YYYY and/or DD.MM.YYYY, HH:mm:ss. At the moment this doesn't work correctly with sortable: true. Is there an alternative to make it work?

sangermann avatar Nov 21 '21 17:11 sangermann

Currentlly no. It needs additional work.

waningflow avatar Nov 23 '21 05:11 waningflow

Maybe as new feature for the next release? :) I would donate for that because it's only useful for me with this functionality.

sangermann avatar Nov 23 '21 08:11 sangermann

YEAH! Thank you so much. Now custom slot works great with formatted data and sorting! Donated :)

sangermann avatar Nov 29 '21 10:11 sangermann