cyp/app/js/lib/search.js
2019-03-30 23:15:32 +01:00

20 lines
432 B
JavaScript

import * as html from "./html.js";
export function normalize(str) {
// FIXME diac/translit
return str.toLowerCase();
}
export default class Search extends EventTarget {
constructor(parent) {
super();
this._node = html.node("div", {className:"search"});
let icon = html.icon("magnify", this._node);
}
getNode() { return this._node; }
getValue() { return this._input.value; }
reset() { this._input.value = ""; }
}