ListPageFilter

Deprecated: Use PatternFly’s Data view instead. Component that generates filter for list page.

Example
  // See implementation for more details on RowFilter and FilterValue types
  const [staticData, filteredData, onFilterChange] = useListPageFilter(
    data,
    rowFilters,
    staticFilters,
  );
  // ListPageFilter updates filter state based on user interaction and resulting filtered data can be rendered in an independent component.
  return (
    <>
      <ListPageHeader .../>
      <ListPagBody>
        <ListPageFilter data={staticData} onFilterChange={onFilterChange} />
        <List data={filteredData} />
      </ListPageBody>
    </>
  )
Parameter Name Description

data

An array of data points

loaded

indicates that data has loaded

onFilterChange

callback function for when filter is updated

rowFilters

(optional) An array of RowFilter elements that define the available filter options

nameFilterPlaceholder

(optional) placeholder for name filter

labelFilterPlaceholder

(optional) placeholder for label filter

hideLabelFilter

(optional) only shows the name filter instead of both name and label filter

hideNameLabelFilter

(optional) hides both name and label filter

columnLayout

(optional) column layout object

hideColumnManagement

(optional) flag to hide the column management