Skip to content

QuoteTemplatesListTable Container

The QuoteTemplatesListTable container displays all quote templates in a paginated table with search, filter, and action capabilities.

Version: 1.0.0

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);