Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

ItemsQuoted Container

The ItemsQuoted container displays a summary of items that have been quoted, providing a quick overview of quoted products. It shows product information and pricing, quantity and discount details, subtotal calculations, and action buttons for quote management.

The component includes responsive design for mobile and desktop viewing.

Version: 1.0.0

Configuration

The ItemsQuoted container provides the following configuration options:

ParameterTypeReq?Description
quoteDataNegotiableQuoteModelNoQuote data object. Auto-populated from drop-in state when omitted.
onItemCheckboxChangefunctionNoCallback when item checkbox is toggled. Use for tracking selections or custom validation.
onItemDropdownChangefunctionNoCallback when item action dropdown changes. Use for custom action handling or analytics.
onUpdatefunctionNoCallback on form submission (quantity/note updates). Use for custom validation or tracking.
onRemoveItemsReffunctionNoProvides access to internal item removal handler. Use for custom removal workflows.
onRemoveModalStateChangefunctionNoCallback when remove confirmation modal opens/closes. Use for tracking or custom modal logic.

Slots

This container exposes the following slots for customization:

SlotTypeRequiredDescription
ProductListTablefunctionNoCustomizes the quoted items table. Use to replace or wrap the default table UI while keeping the built-in handlers for item selection, dropdown actions, quantity changes, and submission.
QuotePricesSummarySlotPropsNoCustomizes the pricing summary for quoted items. Use to change how totals and price breakdowns are displayed.

Usage

The following example demonstrates how to use the ItemsQuoted container:

import { render as provider } from '@dropins/storefront-quote-management/render.js';
import { ItemsQuoted } from '@dropins/storefront-quote-management/containers/ItemsQuoted.js';
await provider.render(ItemsQuoted, {
quoteData: quoteData,
onItemCheckboxChange: onItemCheckboxChange,
onItemDropdownChange: onItemDropdownChange,
slots: {
// Add custom slot implementations here
}
})(block);