wchaering / tagsort Goto Github PK
View Code? Open in Web Editor NEWLooking for maintainer - A jQuery plugin for dynamic element filtering using HTML5 data attributes
Looking for maintainer - A jQuery plugin for dynamic element filtering using HTML5 data attributes
Would be good to add a LICENSE.md
to this project.
Hi,
Just substituted the latest version into a working solution and now the tags get split all over the place even when setting tagDelimiter correctly, the filtering filters but removes the sorting for subsequent clicks.
However, reverting to
var elementTags = tagsData.match(/,\s+/) ? tagsData.split(', ') : tagsData.split(',');
fixes the tagging but it's still broken on second or third clicks...
Line 35:
var tagDelimiter = tagSortEngine.options.tagsDelimiter;
Needs to be:
var tagDelimiter = tagSortEngine.options.tagDelimiter;
The option is not tagsDelimiter it's tagDelimiter
data-item-tags="2017"
If the data-item-tags attribute only contains a single tag, then the script fails:
Uncaught TypeError: r.match is not a function
at HTMLDivElement.<anonymous> (tagsort.min.js:1)
at Function.each (jquery.min.js:2)
at n.fn.init.each (jquery.min.js:2)
at Object.generateTags (tagsort.min.js:1)
at Object.inititalize (tagsort.min.js:1)
at n.fn.init.e.fn.tagSort (tagsort.min.js:1)
at HTMLDocument.<anonymous> (elliotlab.js:83)
at i (jquery.min.js:2)
at Object.fireWith [as resolveWith] (jquery.min.js:2)
at Function.ready (jquery.min.js:2)
Is it possible for single tags to be accommodated?
Hi,
If you create a bower package think it would be more efficient.
Good luck.
Hello,
is it possible to create a start filter?
So that you only see the items of a specific "data-item-tag" at the beginning and not all entries?
Hello,
I'm using tagsort and it works great.
I'm using it on a dynamic list of element: the list grows when adding item dymically.
Many thanks.
P.
I would love it, if there was an option to sort the tags list (itemTagsView
) alphabetically (or maybe make it the default?).
Something nice to have would be a way specify pinned tags (I use a hidden dummy element that carries all tags that should be at the start of the list, and put it in front of all real items). But I don't really imagine a practical user interface for that. This one is really just an idea, whereas the sorting seems very important to me.
http://wch.io/projects/tagsort
maybe instead host demo on GitHub Pages?
Hello there! Right now, I have my reset element set as:
<span class="tag-reset tagsort-active">All</span>
Is there a way to re-apply the tagsort-active class after other tags have been selected and the user goes back to All?
Thank you!
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. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
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.