1
0
forked from MTSR/mapserver
mapserver/server/static/js/search/SearchInput.js
2019-04-14 19:51:31 +02:00

18 lines
478 B
JavaScript

var SearchInput = {
view: function(){
function handleInput(e){
SearchStore.search(e.target.value);
}
return m("div", { class: "input-group mb-3" }, [
m("div", { class: "input-group-prepend" }, [
m("span", { class: "input-group-text" }, [
m("i", { class: "fa fa-search"})
])
]),
m("input[type=text]", { placeholder: "Search", class: "form-control", oninput: handleInput, value: SearchStore.query })
]);
}
}