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

Projects · Components

ApprovalActions

Props for ApprovalActions component

Public export

typescript
import { ApprovalActions } from '@happyvertical/smrt-projects/svelte';
Import path
@happyvertical/smrt-projects/svelte
Props
9
Props described
9 of 9
Bindable state
0
Callback events
5
Verified release
0.44.0

Props

NameTypeRequiredDescription
statusApprovalStatusYesCurrent approval workflow status.
onsubmit() => voidNoInvoked when submitting a draft for approval.
onapprove() => voidNoInvoked when approving a submitted item.
onreject() => voidNoInvoked when rejecting a submitted item.
onedit() => voidNoInvoked when editing a draft or rejected item.
ondelete() => voidNoInvoked when deleting a draft item.
loadingbooleanNoDisables buttons and shows loading indicators during processing.
disabledbooleanNoBlocks all button interactions.
layout'horizontal' | 'vertical'NoArranges buttons horizontally or vertically.

Bindable state

This component has no bindable public state.

Callback events

  • onsubmit() => void
  • onapprove() => void
  • onreject() => void
  • onedit() => void
  • ondelete() => void

Examples and explanation