package monaco_jsoo
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type t = _t Js_of_ocaml.Js.t
Editor type
module Option : sig ... end
Options for the editor functions and methods.
val create :
Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t ->
[< Option.standaloneEditorConstruction ] Moption.t array ->
t
Calls monaco.editor.create
to create an editor over the given DOM element.
val updateOptions :
t ->
[< Option.editor | Option.globalEditor ] Moption.t array ->
unit
Call updateOptions
method to update options of the editor
val getModel : t -> TextModel.t
getModel t
returns the text model of the editor t
https://microsoft.github.io/monaco-editor/api/interfaces/monaco.editor.IEditor.html#getId
val deltaDecorations :
old:Decoration.Id.t array ->
new_:Decoration.deltaDecoration_t array ->
t ->
Decoration.Id.t array
https://microsoft.github.io/monaco-editor/api/interfaces/monaco.editor.ICodeEditor.html#deltaDecorations
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>