web: refactor search-select and fix placeholder; fix misleading comment
This commit is contained in:
parent
e79901441f
commit
0043f1ea6a
|
@ -18,8 +18,8 @@ type Group<T> = [string, T[]];
|
||||||
|
|
||||||
@customElement("ak-search-select")
|
@customElement("ak-search-select")
|
||||||
export class SearchSelect<T> extends AKElement {
|
export class SearchSelect<T> extends AKElement {
|
||||||
// A function which takes the query above (accepting that it may be empty) and
|
// A function which takes the query state object (accepting that it may be empty) and returns a
|
||||||
// returns a new collection of objects.
|
// new collection of objects.
|
||||||
@property({ attribute: false })
|
@property({ attribute: false })
|
||||||
fetchObjects!: (query?: string) => Promise<T[]>;
|
fetchObjects!: (query?: string) => Promise<T[]>;
|
||||||
|
|
||||||
|
|
Reference in New Issue