Commerce · Components
InvoiceLineItems
Legacy decimal-major items or exact retained items.Public export
typescript
import { InvoiceLineItems } from '@happyvertical/smrt-commerce/svelte';- Import path
@happyvertical/smrt-commerce/svelte- Props
- 10
- Props described
- 10 of 10
- Bindable state
- 0
- Callback events
- 3
- Verified release
- 0.57.40
Props
NameTypeRequiredDescription
itemsLineItem[]NoLine 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 messageretainedRetainedInvoiceLineItemsViewNoCaller-authoritative retained line items and subtotal.detailsSnippet<[RetainedInvoiceLineView]>NoRenders additional retained evidence for each line.Bindable state
This component has no bindable public state.
Callback events
onupdate(id: string, item: Partial<LineItem>) => voidondelete(id: string) => voidonadd() => void