Skip to main content

JobStatusIndicatorProps

@fovea/annotation-tool


@fovea/annotation-tool / components/JobStatusIndicator / JobStatusIndicatorProps

Interface: JobStatusIndicatorProps

Defined in: src/components/JobStatusIndicator.tsx:25

Props for JobStatusIndicator component.

Properties

dismissible?

optional dismissible: boolean

Defined in: src/components/JobStatusIndicator.tsx:51

Show dismiss button for completed or failed jobs.

Default

true

jobId

jobId: null | string

Defined in: src/components/JobStatusIndicator.tsx:29

Job ID to monitor, or null to hide the component.


onComplete()?

optional onComplete: (result) => void

Defined in: src/components/JobStatusIndicator.tsx:33

Callback when job completes successfully.

Parameters

result

JobStatus

Returns

void


onDismiss()?

optional onDismiss: () => void

Defined in: src/components/JobStatusIndicator.tsx:41

Callback when user dismisses the status indicator.

Returns

void


onFail()?

optional onFail: (error) => void

Defined in: src/components/JobStatusIndicator.tsx:37

Callback when job fails.

Parameters

error

string

Returns

void


title?

optional title: string

Defined in: src/components/JobStatusIndicator.tsx:46

Custom title for the status indicator.

Default

"Processing"