ContentDataProvider Class
Base class for all presentation-driven content providers.
Extended by
Implements
Methods
| Name | Description | |
|---|---|---|
| constructor(props: ContentDataProviderProps): ContentDataProvider | Constructor. | |
| [dispose](): void | Destructor. | |
| dispose(): void | Deprecated | |
| getContent(pageOptions?: PageOptions): Promise<undefined | Content> | Get the content. | |
| getContentSetSize(): Promise<number> | Get the number of content records. | |
| getDescriptorOverrides(): Promise<DescriptorOverrides> Protected | Get the content descriptor overrides. | |
| getFieldByPropertyDescription(descr: PropertyDescription): Promise<undefined | Field> | Get field that was used to create a property record with given property description. | |
| getFieldByPropertyRecord(propertyRecord: PropertyRecord): Promise<undefined | Field> | Get field using PropertyRecord. | Deprecated | 
| invalidateCache(props: CacheInvalidationProps): void Protected | Invalidates cached content. | |
| shouldRequestContentForEmptyKeyset(): boolean Protected | Called to check if content should be requested even when keysis empty. | 
Properties
| Name | Type | Description | |
|---|---|---|---|
| displayType Accessor ReadOnly | string | Display type used to format content | |
| getContentDescriptor | Memoized<() => Promise<undefined | Descriptor>> | Get the content descriptor. | |
| imodel Accessor | IModelConnection | IModel to pull data from | |
| imodel Setter | imodel(imodel: IModelConnection): void | IModelConnection used by this data provider | |
| keys Accessor | KeySet | Keys defining what to request content for | |
| keys Setter | keys(keys: KeySet): void | Keys defining what to request content for | |
| pagingSize Accessor | undefined | number | Paging options for obtaining content. | |
| pagingSize Setter | pagingSize(value: number): void | ||
| rulesetId Accessor | string | Id of the ruleset to use when requesting content | |
| rulesetId Setter | rulesetId(value: string): void | Id of the ruleset used by this data provider | |
| selectionInfo Accessor | undefined | SelectionInfo | Information about selection event that results in content change | |
| selectionInfo Setter | selectionInfo(info: SelectionInfo): void | Information about selection event that results in content change | 
Defined in
Last Updated: 18 June, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.