Skip to content

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

QuotesListTable Container

Paginated table of quotes with view actions and customizable columns.

Version: 1.0.0-beta5

Configuration

The QuotesListTable container provides the following configuration options:

ParameterTypeReq?Description
pageSizenumberNoSets the number of items displayed per page for pagination. Controls how many quote items appear in each page view. Use to optimize display for different screen sizes or match user preferences.
showItemRangebooleanNoShows item range indicator when true.
showPageSizePickerbooleanNoShows page size selector when true.
showPaginationbooleanNoShows pagination controls when true.
onViewQuotefunctionNoCallback when viewing a quote. Receives quote ID, name, and status.
onPageSizeChangefunctionNoCallback when page size changes.
onPageChangefunctionNoCallback when page changes.

Slots

This container exposes the following slots for customization:

SlotTypeRequiredDescription
QuoteNameSlotPropsNoCustomize quote name cell.
CreatedSlotPropsNoCustomize created date cell.
CreatedBySlotPropsNoCustomize created by (buyer name) cell.
StatusSlotPropsNoCustomize status cell.
LastUpdatedSlotPropsNoCustomize last updated date cell.
QuoteTemplateSlotPropsNoCustomize quote template reference cell.
QuoteTotalSlotPropsNoCustomize quote total amount cell.
ActionsfunctionNoCustomize actions cell (view button).
EmptyQuotesSlotPropsNoCustomize empty state message when no quotes exist.
ItemRangeSlotPropsNoCustomize item range display (for example ‘1-10 of 50’).
PageSizePickerfunctionNoCustomize page size selector.
PaginationfunctionNoCustomize pagination controls.

Usage

The following example demonstrates how to use the QuotesListTable container:

import { render as provider } from '@dropins/storefront-quote-management/render.js';
import { QuotesListTable } from '@dropins/storefront-quote-management/containers/QuotesListTable.js';
await provider.render(QuotesListTable, {
pageSize: 0,
showItemRange: true,
showPageSizePicker: true,
slots: {
// Add custom slot implementations here
}
})(block);