Add fail handler

This commit is contained in:
Daniel Imms
2017-03-04 14:01:34 -08:00
parent 15a867d2b7
commit 1ecc5674ac
3 changed files with 21 additions and 6 deletions
+6
View File
@@ -85,6 +85,12 @@ export interface LinkMatcherOptions {
* false if invalid.
*/
validationCallback?: LinkMatcherValidationCallback;
/**
* A callback that fires when a link click fails due to ctrl or cmd (mac) not
* being pressed. This allows hinting to the user after a likely failed
* click.
*/
clickFailCallback?: (event: MouseEvent) => any;
/**
* The priority of the link matcher, this defines the order in which the link
* matcher is evaluated relative to others, from highest to lowest. The