s-m-r-t
Open the s-m-r-t source on GitHub Switch to dark color scheme
← All UI components

Jobs · Components

JobActions

Action buttons for job operations

Public export

typescript
import { JobActions } from '@happyvertical/smrt-jobs/svelte';
Import path
@happyvertical/smrt-jobs/svelte
Props
8
Props described
8 of 8
Bindable state
0
Callback events
3
Verified release
0.44.0

Props

NameTypeRequiredDescription
jobJobDataYesJob to perform actions on
showRetrybooleanNoShow retry button
showCancelbooleanNoShow cancel button
showDeletebooleanNoShow delete button
onRetry(job: JobData) => voidNoCallback when retry is clicked
onCancel(job: JobData) => voidNoCallback when cancel is clicked
onDelete(job: JobData) => voidNoCallback when delete is clicked
compactbooleanNoCompact mode

Bindable state

This component has no bindable public state.

Callback events

  • onRetry(job: JobData) => void
  • onCancel(job: JobData) => void
  • onDelete(job: JobData) => void

Examples and explanation