Skip to content

muhammedabuali/jquery-tokeninput-bootstrap-theme

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Bootstrap theme for jQuery Tokeninput

This repository contains a .less file that provides a Boostrap theme for the jQuery Tokeninput plug-in.

Screenshot

How to Use

  1. Copy the token-input-bootstrap.less file to your app assets directory. If you're using Rails, it would go under vendor/assets/stylesheets
  2. In your app's master less file, import token-input-bootstrap:
  3. Enable the plug-in on an input field, with the theme option set to bootstrap

Example

$(".token-input").tokenInput([
        {id: 7, name: "Ruby"},
        {id: 11, name: "Python"},
        {id: 13, name: "JavaScript"},
        {id: 17, name: "ActionScript"},
        {id: 19, name: "Scheme"},
        {id: 23, name: "Lisp"},
        {id: 29, name: "C#"},
        {id: 31, name: "Fortran"},
        {id: 37, name: "Visual Basic"},
        {id: 41, name: "C"},
        {id: 43, name: "C++"},
        {id: 47, name: "Java"}
    ], {
        theme: "bootstrap",
        preventDuplicates: true,
        tokenLimit: 5,
        hintText: null,
        animateDropdown: false
    });

About

A bootstrap theme for the jQuery Tokeninput plugin based on LESS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published