Add search bar
This commit is contained in:
parent
740cee3d44
commit
0b69162d0b
15
karaokatalog/ui/static/components/pieces/SearchBar.js
Normal file
15
karaokatalog/ui/static/components/pieces/SearchBar.js
Normal file
@ -0,0 +1,15 @@
|
||||
import search from "../../model/search.js"
|
||||
|
||||
export default {
|
||||
view: function () {
|
||||
return m("search", [
|
||||
m("input[type=search]", {
|
||||
value: search.query,
|
||||
placeholder: "Songs oder Interpreten suchen...",
|
||||
oninput: e => {
|
||||
search.query = e.target.value
|
||||
},
|
||||
}),
|
||||
])
|
||||
},
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user