Comments (5)
Not that I can think of. I've never really ran into a scenario yet where I didn't want to sort a column.
You might be able to define a custom sort function for a column (see README) that just returns the same value, ie: return 1;
-- might need to experiment though.
If you end up needing this functionality, feel free to fork & add a pull request :)
from jquery-tablesort.
think of a table with one column of just images. how'd they be sorted?
from jquery-tablesort.
btw: adding a data-sort-value="1" to the rows td and adding this to your css:
thead th.non-sortable{
cursor:auto;
}
thead th.non-sortable:hover {
background-color: rgba(0,0,0,.05);
color: rgba(0,0,0,.8);
}
thead th.non-sortable:after {
content: none;
}
should do it.
from jquery-tablesort.
Quite old but may be useful for someone else. I just set the class of the column to "column-unsortable" and did the following:
$('table').tablesort(); $(".column-unsortable").unbind();
from jquery-tablesort.
This functionality is now included in jquery-tablesort (0.0.3).
To prevent a column from being sortable, just add the no-sort
class to your th
:
<th class="no-sort">Photo</th>
Try the "Photo" column in the demo:
https://dl.dropboxusercontent.com/u/780754/tablesort/index.html
from jquery-tablesort.
Related Issues (20)
- How to specify default sort column and direction HOT 5
- sort order when clicking on a different column HOT 2
- ​ being injected into my data-sort-value HOT 11
- Latest version not in bower HOT 1
- pagination HOT 1
- Only sorts on first click HOT 5
- Update bower dependencies HOT 1
- default sort on page load ignores direction HOT 15
- jquery-tablesort sorts incorrectly HOT 2
- Maintainers wanted! HOT 6
- Inaccurate Sorting Comparison
- Interested in these fixes? HOT 1
- Custom sorting functions: IP Address
- Currently sorted column not updated
- Can't sort column of float values? HOT 2
- asc and desc tags flipped unless default settings are manually defined
- How to remove sorting "third click"
- on() is not a function
- Memorize current sorted column when sorting by click
- looking for maintainer?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-tablesort.