JavaScript Object to Facilitate Tag and Hashtag Input | Taggier

Taggier is a modern JavaScript (ES6) library to handle input tags or hashtags in an easy way. Users can type text and press a comma to add tags or hashtags to the input field.

how to fix object in javascript, display javascript object in html, javascript pass object by value, javascript objects, javascript returns object, javascript object to string

[API] A Versatile Tag Input Component Built With Vue 3 | TagInput

How to make use of it:

1. Install and import the Taggier.

# NPM
$ npm i Taggier --save
import Taggier from 'Taggier';
// or
import Taggier from './taggier.js';

2. Create a container to hold the tag input.

<div id="taggier"></div>

3. Initialize the Taggier on the container aspect and accomplished it.

const taggier = new Taggier('taggier');

4. Stylize the tags with your individual CSS.

.tag {
  background-color: #5A67D8;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 5px;
  color: #fff;
}

.tag:hover {
  filter: brightness(95%);
  transition: all .1s ease;
}

.tag::after {
  content: ' \00d7';
}

.tag:hover::after {
  color: #F7FAFC;
}

5. Get the tags you simply typed.

taggier.tags.forEach(tag => {
  // ...
});
// or
taggier.getTags()

6. Specify the space between tags.

const taggier = new Taggier('taggier',{
      gap: 20
});

7. Add # to every tag. Ideal for hashtags.

const taggier = new Taggier('taggier',{
      hashtag: true
});

8. Customize the border of the tag input. Setting to false will conceal the border.

const taggier = new Taggier('taggier',{
      border: false
});

9. Determine whether or not to disable sure characters utilizing Regex. Setting to false will disable the function.

const taggier = new Taggier('taggier',{
      forbiddenPattern: '/[^\w]+/g'
});

Easy Clean Tag & Hashtag Input, Taggier Plugin/Github, object javascript get value


See Demo And Download

Official Website(vikcch): Click Here

This superior jQuery/javascript plugin is developed by vikcch. For extra Advanced Usages, please go to the official website.

Related Posts

country-dropdown-with-flags

A Quick jQuery-Based Country Picker With Flags | Country Select JS

Country Select JS is a jQuery plugin to select a country, based on the international phone input plugin. Adds a flag dropdown to any input, which lists…

Autocomplete-and-Typeahead-Javascript-Library

Simple and Fast Autocomplete and Typeahead Javascript Library | autoComplete.js

autoComplete.js is a simple, pure, and incrementally designed JavaScript library for speed, high versatility, and seamless integration with a wide variety of projects and systems. Features Pure…

Bootstrap-Notification-Message-Alert-Plugin

Bootstrap Notification Message Alert Plugin with jQuery

BootstrapMsg is a jQuery plugin for displaying messages with Bootstrap alert classes to generate hierarchical in-page navigation for an extended webpage sectioned by heading components. Using Bootstrap…

jquery-google-chart-plugin

jQuery Plugin for Transforming HTML Tables Into Charts Using Google Charts

Chartinator is a jQuery plugin for converting HTML tables, Google Sheets and js arrays into charts using Google Charts. Use data from HTML tables Chartinator is designed…

free-vue-chart-library

Customizable & Composable Charts for VueJS | vue-wcharts

WCharts is a library that makes it easy to create your own charts using Vuejs. You can easily create reusable chart components. Use a basic layout or…

javascript-emoji-gif-picker-library

A Modern GIF | Emoji Picker Vue3 Components For Your App

vue3 discord picker is a new emoji/gif picker for your app! based on disagreement. This component is only available in vue3. Reworking the Print and Configuration API….