Add ILinkMatcherOptions.hoverEndCallback

This commit is contained in:
Daniel Imms
2017-09-06 16:05:09 -07:00
parent 66c891df5b
commit e960a0a82c
6 changed files with 44 additions and 13 deletions
+7 -2
View File
@@ -141,9 +141,14 @@ interface ILinkMatcherOptions {
validationCallback?: (uri: string, callback: (isValid: boolean) => void) => void;
/**
* A callback that fired when the mouse hovers over a link.
* A callback that fires when the mouse hovers over a link.
*/
hoverCallback?: (event: MouseEvent, uri: string) => boolean | void;
hoverStartCallback?: (event: MouseEvent, uri: string) => boolean | void;
/**
* A callback that fires when the mouse leaves a link that was hovered.
*/
hoverEndCallback?: (event: MouseEvent, uri: string) => boolean | void;
/**
* The priority of the link matcher, this defines the order in which the link