Skip to content

Vizel API / core/src / VizelSuggestionContainer

Interface: VizelSuggestionContainer ​

Defined in: packages/core/src/controllers/suggestionContainer.ts:16

A managed suggestion container with positioning support.

Properties ​

container ​

ts
container: HTMLDivElement;

Defined in: packages/core/src/controllers/suggestionContainer.ts:18

The outer container element appended to document.body


destroy ​

ts
destroy: () => void;

Defined in: packages/core/src/controllers/suggestionContainer.ts:24

Remove the container from the DOM

Returns ​

void


ts
menuContainer: HTMLDivElement;

Defined in: packages/core/src/controllers/suggestionContainer.ts:20

The inner container for mounting framework components


updatePosition ​

ts
updatePosition: (clientRect) => void;

Defined in: packages/core/src/controllers/suggestionContainer.ts:22

Update the container position based on the cursor/selection rect

Parameters ​

ParameterType
clientRectVizelDOMRectGetter

Returns ​

void

Released under the MIT License.