mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-08 00:42:15 +02:00
Add highlight callback examples to demo
This commit is contained in:
parent
02d9ac1312
commit
74a49cf5dd
|
@ -164,6 +164,12 @@
|
||||||
editItems: true,
|
editItems: true,
|
||||||
maxItemCount: 5,
|
maxItemCount: 5,
|
||||||
removeItemButton: true,
|
removeItemButton: true,
|
||||||
|
callbackOnHighlightItem: function(id, value, passedInput) {
|
||||||
|
console.log(value);
|
||||||
|
},
|
||||||
|
callbackOnUnhighlightItem: function(id, value, passedInput) {
|
||||||
|
console.log(value);
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(example1.getValue());
|
console.log(example1.getValue());
|
||||||
|
|
Loading…
Reference in a new issue