Query
Represents a searchable index/object.
Constructor Summary
Public Constructor | ||
public |
constructor(items: T[], pred: Function) Creates a QueryList from a formatted map. |
Method Summary
Public Methods | ||
public |
Returns candidate list for a given query term. |
|
public |
Does a paged search |
Public Constructors
public constructor(items: T[], pred: Function) source
Creates a QueryList from a formatted map. Use QueryList.from methods to construct this. You may not need to use such a complex formatting for simpler (e.g. letter) queries.
Params:
Name | Type | Attribute | Description |
items | T[] | List of all items |
|
pred | Function | Returns search value for given object |
Public Methods
public find(term: string): T[] source
Returns candidate list for a given query term. Uses fuzzy non-repetitive letter matching.
Params:
Name | Type | Attribute | Description |
term | string | Term to search for |
Return:
T[] | the candidate objects. |