Module Tooltip.Tooltip_viewSource
Describes the way a tooltip is displayed.
TooltypeView
include Jv.CONV with type t := Tooltip.Tooltip_view.t
val to_jv : Tooltip.Tooltip_view.t -> Jv.jvto_jv reveals the JavaScript implementation.
val of_jv : Jv.jv -> Tooltip.Tooltip_view.tof_jv hides the JavaScript implementation. Implementations usually do not guarantee type safety.
The DOM element to position over the editor.
Source
val create :
dom:Brr.El.t ->
?offset:Tooltip.Tooltip_view.offset ->
?get_coords:(int -> Tooltip.Tooltip_view.coords) ->
?overlap:bool ->
?mount:(Code_mirror.Editor.View.t -> unit) ->
?update:(Code_mirror.Editor.View.Update.t -> unit) ->
?positioned:(unit -> unit) ->
unit ->
Tooltip.Tooltip_view.tCreates a TooltipView: