Skip to main content

Interface: OverlayTask

Represents a foreground canvas task.

Properties

PropertyModifierTypeDescription

title

readonly

undefined | string

Task title to display.

Methods

end()

end(): void

Completes the task and removes its representation from the overlay.

If the task is marked with error via setError(), that error will be kept displaying until another task is started later.

Returns

void

Defined in

editor/overlayController.tsx:384


setError()

setError(error): void

Marks the task as failed with the specified error.

If set, the error will be displayed until another task will be started later.

This method can be called multiple times and will not complete the task (i.e. end() method call is required).

Parameters

ParameterType

error

unknown

Returns

void

Defined in

editor/overlayController.tsx:377