You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
Feature request - would be nice to specify the default sort direction for a column via a directive in the <th>, as an example (note the order-direction attr):
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 😛
Feature request - would be nice to specify the default sort direction for a column via a directive in the
<th>
, as an example (note theorder-direction
attr):The text was updated successfully, but these errors were encountered: