jcubic / Tagger
Zero Dependency, Vanilla JavaScript Tag Editor
Stars: ✭ 135
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Tagger
Vue Prism Editor
A dead simple code editor with syntax highlighting and line numbers. 3kb/gz
Stars: ✭ 422 (+212.59%)
Mutual labels: editor, component
Vuep
🎡 A component for rendering Vue components with live editor and preview.
Stars: ✭ 840 (+522.22%)
Mutual labels: editor, component
React Autocomplete Input
Autocomplete input field for React
Stars: ✭ 100 (-25.93%)
Mutual labels: component, widget
React Markdown Editor Lite
a light-weight Markdown editor based on React. 一款轻量的基于React的markdown编辑器
Stars: ✭ 553 (+309.63%)
Mutual labels: editor, component
Aws Lex Web Ui
Sample Amazon Lex chat bot web interface
Stars: ✭ 500 (+270.37%)
Mutual labels: interface, widget
React Markdown
Markdown editor (input) based on React
Stars: ✭ 98 (-27.41%)
Mutual labels: editor, component
Iced
A cross-platform GUI library for Rust, inspired by Elm
Stars: ✭ 12,176 (+8919.26%)
Mutual labels: interface, widget
Yii2 Imperavi Widget
Imperavi Redactor widget for Yii 2
Stars: ✭ 250 (+85.19%)
Mutual labels: editor, widget
Flutter crop
Crop any widget/image in Android, iOS, Web and Desktop with fancy and customizable UI, in pure Dart code.
Stars: ✭ 107 (-20.74%)
Mutual labels: editor, widget
Vue Tinymce Editor
This a component provides use of tinymce for vue developers
Stars: ✭ 216 (+60%)
Mutual labels: editor, component
For Editor
for-editor - A markdown editor based on React
Stars: ✭ 358 (+165.19%)
Mutual labels: editor, component
Autocomplete
Blazing fast and lightweight autocomplete widget without dependencies. Only 1KB gzipped. Demo:
Stars: ✭ 244 (+80.74%)
Mutual labels: component, widget
React Planner
✏️ A React Component for plans design. Draw a 2D floorplan and navigate it in 3D mode.
Stars: ✭ 846 (+526.67%)
Mutual labels: interface, component
Object Editor React
Schema-aware editor for structured JSON objects (drop-in React component)
Stars: ✭ 104 (-22.96%)
Mutual labels: editor, component
Ka Table
Lightweight MIT React Table component for both TS and JS with Sorting, Filtering, Grouping, Virtualization, Editing and many more
Stars: ✭ 117 (-13.33%)
Mutual labels: component, widget
_____
|_ _|___ ___ ___ ___ ___
| | | .'| . | . | -_| _|
|_| |__,|_ |_ |___|_|
|___|___| version 0.4.0
Tagger: Zero dependency, Vanilla JavaScript Tag Editor
Installation
npm install @jcubic/tagger
or
yarn add @jcubic/tagger
Usage
tagger(document.querySelector('[name="tags"]'), {allow_spaces: false});
API
methods:
add_tag(string): boolean
remove_tag(string): booelan
complete(string): void
Options:
- wrap (default false)
- allow_duplicates (default false)
- allow_spaces (default true)
- add_on_blur (default false)
-
completion
{list: string[] | function(): Promise(string[])|string[], delay: miliseconds, min_length: number}
-
link
function(name): string|false
it should return what should be in href attribute or false
NOTE: if you're familiar with TypeScript you can check the API by looking at TypeScript definition file:
Changelog
0.4.0
- [Breaking] value in input no longer have space after comma
- fix updating input when deleting tag using backspace
- add option
add_on_blur
- add option
tag_limit
0.3.1
- fix npm package
0.3.0
- add wrap option
- fix remove_tag API
- make settings optional
- add typescript types
0.2.3
- fix ambiguous tags
0.2.2
- reject empty tags
0.2.1
- Fix remove_tag when links are disabled
0.2.0
- link option
- working completion
- allow to use querySelectorAll etc.
0.1.3
- fix inialization in UMD
0.1.2
- fix bug in adding tags
0.1.1
- fix initalization of tags from input
0.1.0
- initial version
License
Copyright (c) 2018-2021 Jakub T. Jankiewicz
Released under the MIT license
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].