Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
WIP version
/// <reference path="jquery.d.ts" />
interface TagsInputTypeaheadOptions {
interface TagsInputOptions {
tagClass?: string;
itemValue?: string;
itemText?: string;
confirmKeys?: Array<number>;
maxTags?: number;
maxChars?: number;
trimValue?: boolean;
allowDuplicates?: boolean;
focusClass?: string;
freeInput?: boolean;
cancelConfirmKeysOnEmpty?: boolean;
onTagExists?: (item: any, $tag: any) => void;
//typeahead?: TagsInputTypeaheadOptions;
interface TagsInput {
(options?: TagsInputOptions): JQuery;
(methodName: string, ...params: any[]): JQuery;
interface JQuery {
tagsinput: TagsInput;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment