Add default "Search" placeholder to link search

This commit is contained in:
nathan 2022-10-13 09:18:49 -06:00
parent 173c8891bd
commit 53e868b47b

View File

@ -47,6 +47,7 @@ export class Et2LinkSearch extends Et2Select
this.searchUrl = "EGroupware\\Api\\Etemplate\\Widget\\Link::ajax_link_search"; this.searchUrl = "EGroupware\\Api\\Etemplate\\Widget\\Link::ajax_link_search";
this.clearable = true; this.clearable = true;
this.hoist = true; this.hoist = true;
this.placeholder = this.getAttribute("placeholder") || this.egw().lang("search");
} }
get _appNode() : Et2LinkAppSelect get _appNode() : Et2LinkAppSelect
@ -57,9 +58,8 @@ export class Et2LinkSearch extends Et2Select
/** /**
* Override parent to do nothing - option is often not in select options * Override parent to do nothing - option is often not in select options
* *
* @private
*/ */
private fix_bad_value() protected fix_bad_value()
{} {}
protected remoteQuery(search : string, options : object) protected remoteQuery(search : string, options : object)