Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@virtualvoid
Created March 10, 2016 08:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save virtualvoid/e525035528cbd4ba6eef to your computer and use it in GitHub Desktop.
Save virtualvoid/e525035528cbd4ba6eef to your computer and use it in GitHub Desktop.
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