Unable to load tablesort.number
See original GitHub issueI’m getting Uncaught ReferenceError: Tablesort is not defined
when I’m loading the tablesort.number.js script.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5
Top Results From Across the Web
jQuery tablesorter is not sorting number correctly
The table is rendered fine, but sorting the numbers is not working correctly. When I sort a number column it gives me the...
Read more >tablesort - npm
A small & simple sorting component for tables written in JavaScript. npm version Build Status. Quick start. Download the ZIP of this repository ......
Read more >jQuery tablesorter 2.0 - GitHub Pages
Property Type Default Link
cancelSelection Boolean true
cssAsc String ""
cssChildRow String "tablesorter‑childRow" 1 2
Read more >Angular mat-table sort example: Adding sorting to the material ...
The above code adds sorting to particular columns i.e., two columns id and gender. Step 5: Assign MatSort to the mat-table data source....
Read more >Tablesort cleanup [#97293] | Drupal.org
"Number" is not supposed to be an identifying title of the field, ... Note that it's only Forum module that needs to load...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here’s a reproducer of the problem: https://github.com/cirosantilli/cirodown/blob/f6d4e00fa159a37f2e45c1a4de72ee1726f72ac4/web2/pages/_app.tsx#L9
Edit: got it working with require instead of
import
as:Maybe also try:
The root problem is that
Tablesort
is just used as a global from each of the sort types, e.g. node_modules/tablesort/src/sorts/tablesort.date.js does:Same issue, the readme file only describes how to import the tablesort library, but not the additional sorts when using it in a npm/webpack context:
var tablesort = require('tablesort');
.