Skip to content

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

QuoteTemplatesListTable Container

Paginated table of quote templates with view and generate actions.

Version: 1.0.0-beta5

Configuration

The QuoteTemplatesListTable container provides the following configuration options:

ParameterTypeReq?Description
pageSizenumberNoSets the number of items displayed per page for pagination. Controls how many quote template 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.
onViewQuoteTemplatefunctionNoCallback when viewing a template. Receives template ID, name, and status.
onGenerateQuoteFromTemplatefunctionNoCallback when generating quote from template. Receives template and quote IDs.
onPageSizeChangefunctionNoCallback when page size changes.
onPageChangefunctionNoCallback when page changes.

Slots

This container exposes the following slots for customization:

SlotTypeRequiredDescription
NameSlotPropsNoCustomize template name cell.
StateSlotPropsNoCustomize state cell (active/inactive).
StatusSlotPropsNoCustomize status cell.
ValidUntilSlotPropsNoCustomize valid until date cell.
MinQuoteTotalSlotPropsNoCustomize minimum quote total cell.
OrdersPlacedSlotPropsNoCustomize orders placed count cell.
LastOrderedSlotPropsNoCustomize last ordered date cell.
ActionsfunctionNoCustomize actions cell (view, generate quote buttons).
EmptyTemplatesSlotPropsNoCustomize empty state message when no templates 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 QuoteTemplatesListTable container:

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