Done Counter for Individual Terms
See original GitHub issueFor me it felt like a callback function is missing. The filter feature was quite nice and I was able to use that. Still, it does not feels like the correct way to work with this.
Steps to reproduce
'filter': function(textNode, keyword, totalCounter, counter){
var keyword = keyword.toLowerCase();
var count = parseInt(counter+1);
var tag = field.find('.keywordmap-tags [data-tag="' + keyword + '"]');
tag.addClass('active');
tag.find('button').html(keyword + '<span class="kwt-count">' + count + '</span>');
return true;
}
Is there a better way or is this just fine?
If you want to know what it does, this is it:
Environment
- mark.js version 8.8.3
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Word Frequency Counter - Count Word Occurrences - Online
Useful, free online tool that counts how many times each word appears in a string or text. No ads, nonsense, or garbage, just...
Read more >Words and Characters Counter
Load or copy and paste any text to calculate its words and characters or phrases and punctuation. Count words in any PDF or...
Read more >How do we Count the Number of Terms in an Algebraic ...
To learn more about Algebraic Expression, enroll in our full course now: ...
Read more >Word Count Tool: Word Counter
Word Count Tool offers: ✓ 100% FREE word counter ✓ No Usage Limits ✓ More FREE tools to help you write better.
Read more >Counteroffer: Definition, Examples, and Strategies
A counteroffer is a response given to an initial offer. A counteroffer means the original offer was rejected and replaced with another one....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @jenstornell!
You can use the
done
callback… I set up this very basic demo that uses it.This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.