src/component/types.ts
Defines a callback function for determining when a certain component should be used. Optionally allows for specifying the matcher's priority.
Properties |
|
Methods |
matches | ||||||
matches(element: T)
|
||||||
Callback function that determines whether the component should be used for the provided element.
Parameters :
Returns :
boolean
|
toString |
toString()
|
Optional string representation of the matcher, used for showing the matcher in the list of registered components.
Returns :
string
|
priority |
priority:
|
Type : number
|
Optional |
Optional priority for the component matcher. Zero by default. |