Tooltip
SourceDescribes the way a tooltip is displayed.
Options for hover tooltips:
val hover_tooltip :
?config:hover_config ->
(view:Code_mirror.View.EditorView.t ->
pos:int ->
side:int ->
Tooltip.t option Fut.t) ->
Code_mirror.Extension.t
Enable a hover tooltip, which shows up when the pointer hovers over ranges of text. The callback is called when the mouse hovers over the document text. It should, if there is a tooltip associated with position pos return the tooltip description (either directly or in a promise). The side argument indicates on which side of the position the pointer isโit will be -1 if the pointer is before the position, 1 if after the position.
Note that all hover tooltips are hosted within a single tooltip container element. This allows multiple tooltips over the same range to be "merged" together without overlapping.