Closed theGeekyLad closed 2 years ago
#school
#cs
#tag
the tag will not be foundTagsInput
extension
Are you still working on this?
Yes I am! Sorry for the lack of activity in the past few days. I'll come back with a PR shortly.
Upgraded the tagging logic with Bulma TagsInput extension. Here's how it looks like now:
Please ignore the box at the bottom left. It's just for demo purposes; clarifies what key presses are issued.
Looks good, thanks!
Added tagging feature to notes which facilitates in grouping notes through #such-kind-of-tags.
index.html
tag-search-container
with atag-search-input
search box and atag-search-clear
text clear buttontags-container
that houses the tags (clicking on which the user can filter notes)styles.css
index.js
get_tags()
that, given a paragraph of text, extracts all tags (looks for #anything) as an array and returns the samebuild_tag()
that, given a tag, creates the DOM representation of that tag (using Bulma helper classes)build_note()
to show tags under the comments section of a noteget_notes()
toget_notes_and_tags()
that now returns a JS object of{ notes, tags }
which is used insidedisplay_notes()
to render all tags (without repetitions) in the global tags searchwindow.onload
to add click and input handlers to the clear button and the tags search field respectively