Skip to content
This repository has been archived by the owner on Mar 21, 2019. It is now read-only.

Sorted table #6

Merged
merged 13 commits into from
Apr 21, 2016
Merged

Sorted table #6

merged 13 commits into from
Apr 21, 2016

Conversation

smogg
Copy link
Contributor

@smogg smogg commented Apr 18, 2016

Adds get-all-keys and sort-rows. Those will be used to implement sorting and cols-toggler on the table. Should we add example use of those fns with table to the readme?

Also, most common use case would be to add an on-click handler to a table's headers to implement sorting. There are some visual changes involved then that should indicate to the user what's happening (by which column sorting currently happens, is it ascending or descending?). I wonder if we should styles for that inside Wilson?

[rows sort-fns by-key]
(if (contains? sort-fns by-key)
((by-key sort-fns) by-key rows)
((:default sort-fns) by-key rows)))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this intentionally still here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean by this?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sort-rows; since the rest of this PR no longer cares about sorting

@lvh lvh merged commit c86134c into RackSec:master Apr 21, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants