Options for a model decoration.

Hierarchy

  • IModelDecorationOptions

Index

Properties

Optional afterContentClassName

afterContentClassName: string

If set, the decoration will be rendered after the text with this CSS class name.

Optional beforeContentClassName

beforeContentClassName: string

If set, the decoration will be rendered before the text with this CSS class name.

Optional className

className: string

CSS class name describing the decoration.

Optional glyphMarginClassName

glyphMarginClassName: string

If set, the decoration will be rendered in the glyph margin with this CSS class name.

Optional glyphMarginHoverMessage

glyphMarginHoverMessage: MarkedString | MarkedString[]

Message to be rendered when hovering over the glyph margin decoration.

Optional hoverMessage

hoverMessage: MarkedString | MarkedString[]

Array of MarkedString to render as the decoration message.

Optional inlineClassName

inlineClassName: string

If set, the decoration will be rendered inline with the text with this CSS class name. Please use this only for CSS rules that must impact the text. For example, use className to have a background color decoration.

Optional isWholeLine

isWholeLine: boolean

Should the decoration expand to encompass a whole line.

Optional linesDecorationsClassName

linesDecorationsClassName: string

If set, the decoration will be rendered in the lines decorations with this CSS class name.

Optional marginClassName

marginClassName: string

If set, the decoration will be rendered in the margin (covering its full width) with this CSS class name.

Optional overviewRuler

If set, render this decoration in the overview ruler.

Optional stickiness

stickiness: TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges | TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges | TrackedRangeStickiness.GrowsOnlyWhenTypingBefore | TrackedRangeStickiness.GrowsOnlyWhenTypingAfter

Customize the growing behavior of the decoration when typing at the edges of the decoration. Defaults to TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges