Skip to content

Interface: AnyDropRenderView<C> ​

Defined in: ui/src/types.ts:88

A mounted custom view.

Type Parameters ​

Type Parameter
C

Properties ​

PropertyTypeDescriptionDefined in
el?HTMLElement | nullReplaces the default content. Omit (or null) to keep the default content and only get update/destroy.ui/src/types.ts:90

Methods ​

destroy()? ​

ts
destroy?(): void;

Defined in: ui/src/types.ts:94

Called once before the element leaves the DOM. Undo decorations and unmount components here.

Returns ​

void


update()? ​

ts
update?(ctx): void;

Defined in: ui/src/types.ts:92

The item changed: update el in place.

Parameters ​

ParameterType
ctxC

Returns ​

void

Released under the MIT License.