Closed liangliang closed 8 years ago
Hi @liangliang!
Using npm install tablesorter
will add the entire contents of the dist
folder, so all widgets are available. You will need to point to the desired widget(s) in a <script>
tag in the HTML file.
Hi @Mottie,
Thanks for the reply. Yeah, all js are in dist folder. But when I require('tablesorter'), it only includes jquery.tablesorter.combined.js which doesn't contain the scroller widget. Guess I will require('scoller-widget') manually.
Sorry, I suck at npm & all that require factory node thingies.
If you have a nice solution that allows you to customize what widgets are loaded and/or required, I'd be happy for a PR :grinning:
@liangliang Having the same problem. What's the proper method here? I'm ok with having to use multiple require()
But I can't seem to figure out the naming to get it to load correctly.
It seems like that a few widgets are included after npm install tablsoter.
But I want to include the scroller widget, how to do that?
Regards, Liang