Skip to content

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

RequisitionListView Container

Overview

The RequisitionListView container component for the drop-in.

Version: 0.7.0-beta

Configuration

The RequisitionListView container provides the following configuration options:

ParameterTypeReq?Description
requisitionListUidstringYesThe UID of the requisition list to display. The UID must be a base64-encoded string. If an invalid UID is provided, the component will render the NotFound state. The component will fetch the requisition list data internally.
skipProductLoadingbooleanNoWhen true, skips automatic product data fetching on component mount. Used in tests to prevent API calls.
pageSizenumberNoNumber of items per page for pagination. Defaults to DEFAULT_PAGE_SIZE.
selectedItemsSet<string>YesNumber of items per page for pagination. Defaults to DEFAULT_PAGE_SIZE.
routeRequisitionListGrid() => string | voidNoFunction that returns the URL to the requisition list grid view or performs navigation

Slots

This container does not currently expose any customizable slots.

Usage

The following example demonstrates how to use the RequisitionListView container:

import { RequisitionListView } from '@dropins/storefront-requisition-list';
export default function MyComponent() {
return (
<RequisitionListView
requisitionListUid="abc-123"
selectedItems="example"
skipProductLoading={true}
/>
);
}