Jobs · Components
JobList
Display a filterable, sortable list of background jobs.Public export
typescript
import { JobList } from '@happyvertical/smrt-jobs/svelte';- Import path
@happyvertical/smrt-jobs/svelte- Props
- 12
- Props described
- 12 of 12
- Bindable state
- 0
- Callback events
- 5
- Verified release
- 0.62.10
Props
NameTypeRequiredDescription
jobsJobData[]YesJobs to displayloadingbooleanNoLoading stateselectablebooleanNoSelectable rowsselectedSet<string>NoSelected job IDsshowActionsbooleanNoShow actions columnonSelectionChange(selected: Set<string>) => voidNoCallback when selection changesonJobClick(job: JobData) => voidNoCallback when job is clickedonRetry(job: JobData) => voidNoCallback when retry is clickedonCancel(job: JobData) => voidNoCallback when cancel is clickedemptySnippetNoEmpty state snippetsortListSortNoCurrent order. Omitted: rows render as supplied (headers show no sort) until a header is activated.onSortChange(sort: ListSort) => voidNoCalled when a header is activated. When given, the parent owns the order (e.g. a server-sorted list) and `jobs` are rendered as supplied.Bindable state
This component has no bindable public state.
Callback events
onSelectionChange(selected: Set<string>) => voidonJobClick(job: JobData) => voidonRetry(job: JobData) => voidonCancel(job: JobData) => voidonSortChange(sort: ListSort) => void