Skip to main content

Interface: DecorationDto

Defined in: Extensions/ExtensionApiDtos.ts:156

Properties

data?

optional data?: unknown

Defined in: Extensions/ExtensionApiDtos.ts:168

Opaque data passed through to the click handler.


groupId?

optional groupId?: string

Defined in: Extensions/ExtensionApiDtos.ts:175

Optional ID for grouping related decorations. Pass the same groupId to ui.updateVerseDecorations to replace the whole group atomically.


hoverContent?

optional hoverContent?: HoverContentDto

Defined in: Extensions/ExtensionApiDtos.ts:161

Optional hover content shown when the user mouses over the decorated text.


onClickCommand?

optional onClickCommand?: string

Defined in: Extensions/ExtensionApiDtos.ts:166

Command to execute when the user clicks the decoration. The command receives { range, data } as args.


order?

optional order?: number

Defined in: Extensions/ExtensionApiDtos.ts:170

Render order. See "order hint" section of the spec.


range

range: VerseRange | VerseRange[]

Defined in: Extensions/ExtensionApiDtos.ts:158

A single range or several ranges to apply the same style.


style

style: DecorationStyle

Defined in: Extensions/ExtensionApiDtos.ts:159