select2 templateSelection method signature

A JQuery container is also passed in as the 2nd parameter. https://select2.github.io/options.html#templateSelection
This commit is contained in:
Richard Rout
2016-11-24 08:05:42 -07:00
committed by GitHub
parent ea7cd856c1
commit 460a2e2103
+1 -1
View File
@@ -76,7 +76,7 @@ interface Select2Options {
/**
* Template can return both plain string that will be HTML escaped and a jquery object that can render HTML
*/
templateSelection?: (object: Select2SelectionObject) => any;
templateSelection?: (object: Select2SelectionObject, container: JQuery) => any;
templateResult?: (object: Select2SelectionObject) => any;
language?: string | string[] | {};
selectOnClose?: boolean;