Skip to content

ManageNegotiableQuoteTemplate Container

The ManageNegotiableQuoteTemplate container provides the interface for managing quote templates with template-specific actions and details.

Version: 1.0.0

Configuration

The ManageNegotiableQuoteTemplate container provides the following configuration options:

ParameterTypeReq?Description
onActionsButtonClickfunctionNoCallback function triggered when actions button click
onSendForReviewfunctionNoCallback function triggered when send for review
maxFilesnumberNoSets the maximum number of files that can be attached when sending a quote template for review. Use to enforce attachment limits and prevent excessive uploads.
maxFileSizenumberNoSets the maximum file size in bytes for quote template attachments. Use to prevent large uploads and provide consistent UX for file validation.
acceptedFileTypesstring[]NoSpecifies an array of MIME types allowed for quote template attachments (for example ['application/pdf', 'image/jpeg', 'image/png']). Use to restrict uploads to supported document types.

Slots

This container exposes the following slots for customization:

SlotTypeRequiredDescription
TemplateNameSlotPropsNoCustomizes the template name area, including the rename affordance. Use to change how the template name is displayed or to add additional metadata next to it.
TemplateStatusSlotPropsNoCustomizes how the template status is displayed. Use to change the status label, badge styling, or status-specific messaging.
BannerSlotPropsNoCustomizes the alert banner area for template state changes and actions. Use to add custom messaging for template lifecycle events (for example, updated, in review, accepted).
DetailsSlotPropsNoCustomizes the template details section. Use to add or reorder template metadata and apply custom formatting.
ActionBarSlotPropsNoCustomizes the action bar for quote template operations. Use to add custom actions, reorder controls, or integrate with external workflows.
ReferenceDocumentsfunctionNoCustomizes the reference documents section. Use to replace the default list UI or to customize add, edit, and remove behavior.
ItemsTableSlotPropsNoCustomizes the template items section container. Use to wrap or replace the default items table layout.
ItemsQuotedTabSlotPropsNoCustomizes the Items Quoted tab for template items. Use to add additional item details, custom actions, or supplemental content.
CommentsTabSlotPropsNoCustomizes the Comments tab for quote template discussions. Use to change how comments are displayed or to add validation and formatting.
HistoryLogTabSlotPropsNoCustomizes the History Log tab for template activity. Use to filter, group, or extend the activity feed.
CommentsTitleSlotPropsNoCustomizes the comments section heading for a quote template. Use to add help text or additional context for commenters.
CommentsSlotPropsNoCustomizes the comments section content for a quote template. Use to replace the default comments UI or to integrate with an external commenting system.
AttachFilesFieldfunctionNoCustomizes the file attachment input for a quote template. Use to add drag-and-drop UX, validation messaging, or integrations with document storage.
AttachedFilesListfunctionNoCustomizes how attached files are displayed for a quote template. Use to add previews, custom removal UX, or external viewers.
HistoryLogTitleSlotPropsNoCustomizes the history log section heading for a quote template. Use to add contextual help or status indicators.
HistoryLogSlotPropsNoCustomizes the history log content for a quote template. Use to change formatting, sorting, or grouping of history entries.
FooterfunctionNoCustomizes the footer actions for quote template management. Use to change submit and accept controls, add validation steps, or show custom status messaging.
ShippingInformationTitleSlotPropsNoCustomizes the shipping information section heading for a quote template. Use to add icons, tooltips, or additional context.
ShippingInformationfunctionNoCustomizes the shipping information section for a quote template. Use to replace the default display or integrate with custom shipping workflows.

Usage

The following example demonstrates how to use the ManageNegotiableQuoteTemplate container:

import { render as provider } from '@dropins/storefront-quote-management/render.js';
import { ManageNegotiableQuoteTemplate } from '@dropins/storefront-quote-management/containers/ManageNegotiableQuoteTemplate.js';
await provider.render(ManageNegotiableQuoteTemplate, {
onActionsButtonClick: onActionsButtonClick,
onSendForReview: onSendForReview,
maxFiles: 0,
slots: {
// Add custom slot implementations here
}
})(block);