Comments (2)
I see, maybe the "+" sign is counter-intuitive since it's not about adding.
The basic rule here is
Use label for one-column sorting and "+" button for multisorting
There are 3 states of sorting:
- ASC
- DESC
- not sorted
You are switching between these 3 states in a loop as you are sorting by certain column (i.e. clicking either on label or "+" button). When the grid is sorted by 2+ columns, you can see that thanks to number labels next to the "+" button.
Furthermore I don't see a quick way to reset multisort back to single-column sorting in your solution.
from twigrid.
In my solution, if you once selected multisort, then you need to cancel it gradually by "x" button (or "-" button, if you want). It follows the same steps you need to do for multisort init.
or the 2nd point, that i mentioned at #27:
some checkbox or radiobox (for example above the table) to change behavior between single sort and multi sort
And reaction to 3 states of sorting:
There are 3 states of sorting: ASC, DESC, not sorted
But this is not so practical, when you can try to switch between ASC to DESC and then return to ASC.
from twigrid.
Related Issues (18)
- Unable to render DataGrid inside snippet using AJAX HOT 2
- Session namespace is non-unique HOT 1
- @deprecated method accessing HOT 1
- composer dependency forcing to download 2.4RC1 HOT 1
- end() expects parameter 1 to be array, null given HOT 5
- Chybějící buňka v patičce HOT 2
- Localization of "No data." message HOT 1
- Possibility to decorate rows/cells HOT 8
- Possibility to wrap header to multiple lines. HOT 3
- "multisort" class in all headers HOT 1
- Compatibility with PHP 7.0.19 HOT 4
- Creating default object from empty value (PHP 7.0.10 / TwiGrid 11.2.0) HOT 4
- More than one grid at presenter HOT 5
- build() is called too early in component lifecycle HOT 5
- Assignment inside of latte is now handled like error in Latte 2.9.2 HOT 4
- version 12.0.0 doesn't work with Nette 3.1.1 HOT 1
- Summary row at the end of the Grid HOT 3
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 twigrid.