Skip to content

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

RequisitionListHeader Container

Displays header information for a requisition list including name, description, and action buttons.

Version: 1.0.0-beta4

Configuration

The RequisitionListHeader container provides the following configuration options:

ParameterTypeReq?Description
requisitionListRequisitionListYesProvides the requisition list data object containing name, description, and metadata. Required to display the list information in the header. Contains all list details needed for rendering the header section.
routeRequisitionListGridfunctionNoGenerates the URL for navigating back to the requisition list grid view. Returns a URL string or performs navigation. Use to implement breadcrumb navigation, back buttons, or integrate with your application’s routing system.
onUpdatefunctionNoCallback function to handle requisition list updates when the name or description changes. Use to refresh the parent component or show success notifications.
onAlertfunctionNoCallback function to handle alert notifications when alerts are displayed.

Slots

This container does not expose any customizable slots.

Usage

The following example demonstrates how to use the RequisitionListHeader container:

import { render as provider } from '@dropins/storefront-requisition-list/render.js';
import { RequisitionListHeader } from '@dropins/storefront-requisition-list/containers/RequisitionListHeader.js';
await provider.render(RequisitionListHeader, {
requisitionList: requisitionList,
routeRequisitionListGrid: routeRequisitionListGrid,
onUpdate: onUpdate,
})(block);