31 lines
425 B
JavaScript
31 lines
425 B
JavaScript
|
|
|
||
|
|
import input from "/elements/input.js";
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
export default class searchBar extends input {
|
||
|
|
|
||
|
|
placeholder = "Search."
|
||
|
|
|
||
|
|
placeholderColor = "#8e8e8e"
|
||
|
|
|
||
|
|
webkitTextFillColor = "none";
|
||
|
|
|
||
|
|
async keyup( event ) {
|
||
|
|
|
||
|
|
this.value = this.customElement.value;
|
||
|
|
|
||
|
|
var value = this.value;
|
||
|
|
|
||
|
|
console.log("search input", value);
|
||
|
|
|
||
|
|
var newsItems = this.parent.userTable.body;
|
||
|
|
|
||
|
|
newsItems.value = value;
|
||
|
|
|
||
|
|
newsItems.sync();
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|