packageDocumentation module import React from "react" ; import { DelayedSpinner } from "../../common/DelayedSpinner" ; import { HighlightingComponentProps } from "../../common/HighlightingComponentProps" ; import { FilteredType } from "../dataproviders/filterers/PropertyDataFiltererBase" ; import { usePropertyGridEventHandler , usePropertyGridModel , usePropertyGridModelSource } from "../internal/PropertyGridHooks" ; import { PropertyCategoryRendererManager } from "../PropertyCategoryRendererManager" ; import { IPropertyDataProvider } from "../PropertyDataProvider" ; import { CommonPropertyGridProps } from "./PropertyGridCommons" ; import { VirtualizedPropertyGrid } from "./VirtualizedPropertyGrid" ; beta export interface VirtualizedPropertyGridWithDataProviderProps extends CommonPropertyGridProps { dataProvider : IPropertyDataProvider ; highlight ? : HighlightingComponentProps & { filteredTypes ? : FilteredType [ ] ; } ; propertyCategoryRendererManager ? : PropertyCategoryRendererManager ; width : number ; height : number ; } beta export function VirtualizedPropertyGridWithDataProvider ( props ) { const modelSource = usePropertyGridModelSource ( { dataProvider : props . dataProvider } ) ; const model = usePropertyGridModel ( { modelSource } ) ; const eventHandler = usePropertyGridEventHandler ( { modelSource } ) ; if ( ! model ) { return ( < div className = "components-virtualized-property-grid-loader" > < DelayedSpinner size = "large" / > < /div>); } return ( < VirtualizedPropertyGrid { ... props } model = { model } eventHandler = { eventHandler } / > ) ; }