I can see why this would be desirable. Are you thinking the attribute should restrict the direction to only sort descending or ascending, or just the default direction? order-direction makes it seem like it can only sort in that direction.
Thanks for the prompt response. Yeah, in my experience the user usually wants to see text columns alphabetically (so default ascending works well) and numeric columns from highest to lowest (or biggest to smallest). And to clarify, it would be the default sort direction, but the user could still toggle between either state. So order-direction is not a great name - perhaps order-default-direction or the like?
Okay, order-default-direction is a little verbose. We can probably think of something sorter that makes sense. I've been thinking of shortening some of the other attributes as well. For example, md-data-table-* would become md-table-*; md-data-table-pagination could just be md-pagination. I guess that is a personal preference but I think most people would prefer shorter attribute names. I'd end up breaking everyone's tables tough 😛
from md-data-table.
Comments (3)
I can see why this would be desirable. Are you thinking the attribute should restrict the direction to only sort descending or ascending, or just the default direction?
order-direction
makes it seem like it can only sort in that direction.from md-data-table.
Thanks for the prompt response. Yeah, in my experience the user usually wants to see text columns alphabetically (so default ascending works well) and numeric columns from highest to lowest (or biggest to smallest). And to clarify, it would be the default sort direction, but the user could still toggle between either state. So
order-direction
is not a great name - perhapsorder-default-direction
or the like?from md-data-table.
Okay,
order-default-direction
is a little verbose. We can probably think of something sorter that makes sense. I've been thinking of shortening some of the other attributes as well. For example,md-data-table-*
would becomemd-table-*
;md-data-table-pagination
could just bemd-pagination
. I guess that is a personal preference but I think most people would prefer shorter attribute names. I'd end up breaking everyone's tables tough 😛from md-data-table.
Related Issues (20)
Recommend Projects
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
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
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.