Semantic-UI icon indicating copy to clipboard operation
Semantic-UI copied to clipboard

Tablesort

Open fridzema opened this issue 8 years ago • 6 comments

Hello,

I was searching for the tablesort(plugin) but can't find it in the dist folder. Is it an idea to add the plugin also in the dist folder, or am i missing something?

As far as i know are my only options to manually download https://semantic-ui.com/javascript/library/tablesort.js or use this directly, not preferable for me.

fridzema avatar Jun 13 '18 09:06 fridzema

From the docs:

Adding the class ascending or descending to the th will show the user the sorting direction. This example uses a modified version of the kylefox's tablesort plugin to provide the proper class names. To make sortable tables work, include this javascript into your page and call $('table').tablesort() when the DOM is ready.

https://semantic-ui.com/collections/table.html#sortable

ColinFrick avatar Jun 13 '18 09:06 ColinFrick

@ColinFrick I know how to use it, thats not the problem.

But i want to know how to include it my project properly. The file is not shipped with semantic ui as far as i know and not available at the npm registry.

Also i can not use the original "kylefox's tablesort" plugin as semantic ui uses a modified version of this.

fridzema avatar Jun 13 '18 09:06 fridzema

Include this javascript file.

ozzywalsh avatar Jun 13 '18 11:06 ozzywalsh

@ozzywalsh I know that i must include that file.

When i install Semantic ui with NPM i assume the file is included in the semantic folder, but it isn't. Alternatively it is handy to install this 'plugin' separate with NPM.

For the people that don't know what i am talking about: NPM is a command line tool that could be used to keep all your dependencies up to date, so if semantic ui gets updated i don't have to download it manually. And my question is that this plugin should be managed at the same way. Hope this make something clear...

This is definitely not a usage question but more a feature request.

fridzema avatar Jun 13 '18 14:06 fridzema

Why was this closed? Is there still no way to include this feature through a package manager?

rekliner avatar Oct 28 '20 21:10 rekliner

I would like to know this as well.

mcrysler avatar Aug 03 '22 22:08 mcrysler