Add search bar
This commit is contained in:
@@ -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
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
])
|
||||||
|
},
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user