Ir al contenido

HTMLInfo

Defined in: panel/HTMLInfo.ts:17

GoJS-compatible: an HTML-based alternative to a Panel template for Part.contextMenu/toolTip, or TextBlock.textEditor — instead of a canvas-drawn Panel, show/hide are given full control over an arbitrary HTML element.

Real GoJS types show’s first argument as GraphObject | null, since Part extends GraphObject there. graphojs’s Part has a panel instead of being one (a permanent architectural difference), so this is typed Part | null — the part the menu/tooltip is being shown for, or null for the diagram background.

new HTMLInfo(init?): HTMLInfo

Defined in: panel/HTMLInfo.ts:23

Partial<HTMLInfo>

HTMLInfo

get hide(): ((a, b) => void) | null

Defined in: panel/HTMLInfo.ts:43

((a, b) => void) | null

set hide(value): void

Defined in: panel/HTMLInfo.ts:47

((a, b) => void) | null

void


get mainElement(): HTMLElement | null

Defined in: panel/HTMLInfo.ts:27

HTMLElement | null

set mainElement(value): void

Defined in: panel/HTMLInfo.ts:31

HTMLElement | null

void


get show(): ((a, b, c) => void) | null

Defined in: panel/HTMLInfo.ts:35

((a, b, c) => void) | null

set show(value): void

Defined in: panel/HTMLInfo.ts:39

((a, b, c) => void) | null

void


get valueFunction(): (() => unknown) | null

Defined in: panel/HTMLInfo.ts:51

(() => unknown) | null

set valueFunction(value): void

Defined in: panel/HTMLInfo.ts:55

(() => unknown) | null

void

invokeHide(diagram, tool): void

Defined in: panel/HTMLInfo.ts:65

Invoke hide, or — if unset — hide mainElement directly, matching GoJS’s documented default.

Diagram

Tool | null

void


invokeShow(part, diagram, tool): void

Defined in: panel/HTMLInfo.ts:60

Invoke show, falling back to un-hiding mainElement if hide wasn’t set either.

Part | null

Diagram

Tool | null

void