Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

[Feature Request] Make a table sortable #118

Open
lxynov opened this issue Jan 22, 2021 · 1 comment
Open

[Feature Request] Make a table sortable #118

lxynov opened this issue Jan 22, 2021 · 1 comment
Labels
feature:extension Feature request that affects widgets, comment, share, search, and plugins.

Comments

@lxynov
Copy link

lxynov commented Jan 22, 2021

For a table like

Title Year Category Rating
Book 1 2018 Fiction 4.2
Book 2 2005 Tech 3.9
Book 3 2008 Fiction 4.3

It would be useful to make it sortable by columns. Example: https://www.w3schools.com/w3js/w3js_sort.asp

According to this post, we can import a Sortable JS library and simply add class name sortable to table elements in HTML to achieve this.

So is this achievable on the theme side? Or is this a feature request to Hexo? Thanks!

@ppoffice
Copy link
Owner

Thanks for your suggestion. I think it could be implemented either as a Hexo plugin or theme plugin.

@ppoffice ppoffice added the feature:extension Feature request that affects widgets, comment, share, search, and plugins. label Jan 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature:extension Feature request that affects widgets, comment, share, search, and plugins.
Projects
None yet
Development

No branches or pull requests

2 participants