DateFacet: CoreCommerceFacet<DateRangeRequest, DateFacetValue> & {
    setRanges: (ranges: DateRangeRequest[]) => void;
    state: DateFacetState;
} & FacetControllerType<"dateRange">

The DateFacet sub-controller offers a high-level programming interface for implementing date commerce facet UI component.

Type declaration

  • setRanges: (ranges: DateRangeRequest[]) => void

    Replaces the current range values with the specified ones.

  • state: DateFacetState

    The state of the DateFacet sub-controller.