Giter Club home page Giter Club logo

mentions-kinder.js's Introduction

mentions-kinder.js Build Status

mentions-kinder is a simple and powerful input ui component that introduces all kinds of tokens/mentions in regular text inputs. Like user mentions you know from Facebook or Google+. It tries to be as configurable and customizable as possible while providing a basic setup you can use right away.

This project is massively inspired by the jquery-mentions-input. We maintained a version internally, collecting various patches and features from forks, but run into too many errors. That's why we decided to write our own version with a few different ideas.

The name is a pun on the german exclamation Menschenskinder, which sounds exactly like mentions-kinder. It can also be interpreted in the way, that this plugin provides all kinds of mentions.

Check the demo page now!

Features

  • Multiple trigger chars (i.e. # => tags, @ => mentions, ! => priority)
  • Configurable output serialization (i.e. [@Jon Doe](user:id))
  • Configurable autocompleters (select2, datepicker, whatever)
  • Support IE8

TODO

  • Context sensitive trigger, i.e. don't trigger @-mention when entering email address, via regex (/(^|\s)@/), which would support multi-char triggers too
  • Remove mention via BACKSPACE in Firefox and IE8 (See this Stackoverflow post)
  • Full documentation
  • Better Tests
  • Try to remove rangy dependency, extract what we really need
  • Make jquery optional
  • Build with require.js
  • Implement datepicker-autocompleter
  • Implement autocompleter using Twitter Typeahead

Usage

It's best to check our demo page and its source for now, sorry.

$('textarea').mentionsKinder()

mentions-kinder.js's People

Contributors

dino115 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.