Skip to content

Plugin.registerHoverLinkSource method

Plugin › registerHoverLinkSource

Official

Registers a view with the 'Page preview' core plugin as an emitter of the 'hover-link' event.

Signature:

registerHoverLinkSource(id: string, info: HoverLinkSource): void

Parameters:

ParameterTypeDescription
idstringThe ID of the hover link source, usually the plugin ID.
infoHoverLinkSourceHow the source is shown in the 'Page preview' plugin settings.

Returns: void

Since: 1.1.0

Example:

plugin.registerHoverLinkSource('foo', {
display: 'bar',
defaultMod: true,
});