EntityListContextProps
Home > @backstage/plugin-catalog-react
> EntityListContextProps
Signature:
export type EntityListContextProps<EntityFilters extends DefaultEntityFilters = DefaultEntityFilters> = {
filters: EntityFilters;
entities: Entity[];
backendEntities: Entity[];
updateFilters: (filters: Partial<EntityFilters> | ((prevFilters: EntityFilters) => Partial<EntityFilters>)) => void;
queryParameters: Partial<Record<keyof EntityFilters, string | string[]>>;
loading: boolean;
error?: Error;
pageInfo?: {
next?: () => void;
prev?: () => void;
};
totalItems?: number;
limit: number;
offset?: number;
setLimit: (limit: number) => void;
setOffset?: (offset: number) => void;
paginationMode: PaginationMode;
};
References: DefaultEntityFilters, Entity, PaginationMode