Skip to content

FieldMountable

Defined in: packages/core/src/fields/FieldMountable.ts:4

new FieldMountable(mb, uuid, filePath): FieldMountable

Defined in: packages/core/src/fields/FieldMountable.ts:9

Parameter Type

mb

MetaBind

uuid

string

filePath

string

FieldMountable

Mountable.constructor

readonly mb: MetaBind

Defined in: packages/core/src/fields/FieldMountable.ts:5

getFilePath(): string

Defined in: packages/core/src/fields/FieldMountable.ts:21

string


getTargetEl(): undefined | HTMLElement

Defined in: packages/core/src/utils/Mountable.ts:22

Get the element that the mountable is currently mounted to.

undefined | HTMLElement

Mountable.getTargetEl


getUuid(): string

Defined in: packages/core/src/fields/FieldMountable.ts:17

string


isMounted(): boolean

Defined in: packages/core/src/utils/Mountable.ts:15

Check if the mountable is currently mounted.

boolean

Mountable.isMounted


mount(targetEl): void

Defined in: packages/core/src/utils/Mountable.ts:50

Mount the mountable to the given element. Will throw an error if the mountable is already mounted.

Parameter Type Description

targetEl

HTMLElement

void

Mountable.mount


registerUnmountCb(cb): void

Defined in: packages/core/src/utils/Mountable.ts:91

Register a callback that will be called when the mountable is unmounted.

Parameter Type Description

cb

() => void

void

Mountable.registerUnmountCb


unmount(): void

Defined in: packages/core/src/utils/Mountable.ts:70

Unmount the mountable from the current element.

void

Mountable.unmount