setDecorations
abstract fun setDecorations(decorationType: TextEditorDecorationType, rangesOrOptions: JsAny)(source)
Adds a set of decorations to the text editor. If a set of decorations already exists with the given decoration type, they will be replaced. If rangesOrOptions
is empty, the existing decorations with the given decoration type will be removed.
Parameters
decorationType
A decoration type.
rangesOrOptions
See also
createTextEditorDecorationType