Commerce · Components
InvoiceLineItems
Props for InvoiceLineItems componentPublic export
typescript
import { InvoiceLineItems } from '@happyvertical/smrt-commerce/svelte';- Import path
@happyvertical/smrt-commerce/svelte- Props
- 8
- Props described
- 8 of 8
- Bindable state
- 0
- Callback events
- 3
- Verified release
- 0.44.0
Props
NameTypeRequiredDescription
itemsLineItem[]YesLine items to displayeditablebooleanNoEnable editing modecurrency'CAD' | 'USD'NoCurrency codeonupdate(id: string, item: Partial<LineItem>) => voidNoCalled when item is updatedondelete(id: string) => voidNoCalled when item is deletedonadd() => voidNoCalled when add button is clickedshowSourcebooleanNoShow source type columnemptyMessagestringNoEmpty state messageBindable state
This component has no bindable public state.
Callback events
onupdate(id: string, item: Partial<LineItem>) => voidondelete(id: string) => voidonadd() => void