knockout-kendo.autocompletebinding.js
- Last UpdatedMar 12, 2021
- 1 minute read
(function ()
{
var createBinding = ko.kendo.bindingFactory.createBinding.bind(ko.kendo.bindingFactory);
//use constants to ensure consistency and to help reduce minified file size
var CLICK = "click",
CLICKED = "clicked",
CLOSE = "close",
COLLAPSE = "collapse",
CONTENT = "content",
DATA = "data",
ENABLE = "enable",
EXPAND = "expand",
ENABLED = "enabled",
EXPANDED = "expanded",
ERROR = "error",
FILTER = "filter",
HIDE = "hide",
INFO = "info",
ISOPEN = "isOpen",
MAX = "max",
MIN = "min",
OPEN = "open",
PALETTE = "palette",
READONLY = "readonly",
RESIZE = "resize",
SEARCH = "search",
SELECT = "select",
SELECTED = "selected",
SHOW = "show",
SUCCESS = "success",
SIZE = "size",
TARGET = "target",
TITLE = "title",
VALUE = "value",
VALUES = "values",
WARNING = "warning";
createBinding({
name: "kendoAutoComplete",
events: {
change: VALUE,
open: {
writeTo: ISOPEN,
value: true
},
close: {
writeTo: ISOPEN,
value: false
}
},
watch: {
enabled: ENABLE,
search: [SEARCH, CLOSE],
data: function (value)
{
ko.kendo.setDataSource(this, value);
},
value: VALUE
}
});
}());