First commit
This commit is contained in:
31
application/user/userList/search.js
Normal file
31
application/user/userList/search.js
Normal file
@@ -0,0 +1,31 @@
|
||||
|
||||
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();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user