tablesort icon indicating copy to clipboard operation
tablesort copied to clipboard

ES6 import don't work with additional sorts

Open siamkreative opened this issue 6 years ago • 5 comments

While this works:

import Tablesort from 'tablesort'

I don't know how to import the additional sorts (example: number, date). Could you please document this?

siamkreative avatar Oct 21 '18 06:10 siamkreative

+1 to this issue.

I think src/sorts/ should be marked as exportable modules

dpmango avatar Apr 17 '19 15:04 dpmango

+1

xsonic avatar Jun 12 '19 09:06 xsonic

I believe this library is no longer maintained :(

siamkreative avatar Sep 06 '19 03:09 siamkreative

👋 Pull requests happily accepted!

tristen avatar Sep 06 '19 15:09 tristen

Importing the sort files directly does not work, as inside of them Tablesort is not defined. This here is working (at least for webpack): https://github.com/contradictioned/tablesort/commit/c00ff8271828d06e3dbca4af27f7d993a25c438a

Problem is, that this import probably does not work with a plain-old-javascript setup.

contradictioned avatar Oct 21 '19 14:10 contradictioned