File

src/component/types.ts

Description

Defines a callback function for determining when a certain component should be used. Optionally allows for specifying the matcher's priority.

Index

Properties
Methods

Methods

matches
matches(element: T)

Callback function that determines whether the component should be used for the provided element.

Parameters :
Name Type Optional
element T No
Returns : boolean
toString
toString()

Optional string representation of the matcher, used for showing the matcher in the list of registered components.

Returns : string

Properties

priority
priority: number
Type : number
Optional

Optional priority for the component matcher. Zero by default.

result-matching ""

    No results matching ""