-
Notifications
You must be signed in to change notification settings - Fork 1
Properties & Methods
忘忧北萱草 edited this page Apr 24, 2020
·
1 revision
The TidSearch
class contains the following properties or methods.
Start a search. This method accepts the only parameter, the searched text.
When the input
configuration item is specified, this method will be automatically called when the content of input
changes (input
event or paste
event).
The search
method returns a Promise
, which represents the search result (an array of page elements in JSON).
A Promise
object will be resolved when TidSearch
is loaded.
You can execute some code after the initialization is complete as follows.
const sch = new TidSearch ({/* Your Options... */});
sch.loaded.then(() => {
// The code here will be executed after loading
});