Skip to content

Latest commit

 

History

History
153 lines (87 loc) · 3.18 KB

JSONHover.md

File metadata and controls

153 lines (87 loc) · 3.18 KB

codemirror-json-schema / JSONHover

Class: JSONHover

Table of contents

Constructors

Methods

Properties

Constructors

constructor

new JSONHover(opts?)

Parameters

Name Type
opts? HoverOptions

Defined in

features/hover.ts:88

Methods

doHover

doHover(view, pos, side): Promise<null | Tooltip>

Parameters

Name Type
view EditorView
pos number
side Side

Returns

Promise<null | Tooltip>

Defined in

features/hover.ts:203


formatMessage

Private formatMessage(texts): HTMLElement

Parameters

Name Type
texts HoverTexts

Returns

HTMLElement

Defined in

features/hover.ts:136


getDataForCursor

getDataForCursor(view, pos, side): null | CursorData

Parameters

Name Type
view EditorView
pos number
side Side

Returns

null | CursorData

Defined in

features/hover.ts:95


getHoverTexts

getHoverTexts(data, draft): HoverTexts

Parameters

Name Type
data Required<CursorData>
draft Draft

Returns

HoverTexts

Defined in

features/hover.ts:162

Properties

mode

Private mode: JSONMode = MODES.JSON

Defined in

features/hover.ts:87


opts

Private Optional opts: HoverOptions

Defined in

features/hover.ts:88


schema

Private schema: null | Draft = null

Defined in

features/hover.ts:86