API Reference > presentation-frontend > Core > FavoritePropertiesManager FavoritePropertiesManager Class The favorite property manager which lets to store favorite properties and check if field contains favorite properties. Implements IDisposable Methods Name Description constructor(props: FavoritePropertiesManagerProps): FavoritePropertiesManager add(field: Field, projectId?: string, imodelId?: string): Promise<void> Adds favorite properties into a certain scope. Deprecated add(field: Field, imodel: IModelConnection, scope: FavoritePropertiesScope): Promise<void> Adds favorite properties into a certain scope. changeFieldPriority(imodel: IModelConnection, field: Field, afterField: undefined | Field, visibleFields: Field[]): Promise<void> Changes field properties priorities to lower than another fields priority clear(projectId?: string, imodelId?: string): Promise<void> Removes all favorite properties from a certain scope. Deprecated clear(imodel: IModelConnection, scope: FavoritePropertiesScope): Promise<void> Removes all favorite properties from a certain scope. dispose(): void has(field: Field, projectId?: string, imodelId?: string): boolean Check if field contains at least one favorite property. Deprecated has(field: Field, imodel: IModelConnection, scope: FavoritePropertiesScope): boolean Check if field contains at least one favorite property. initializeConnection(imodel: IModelConnection): Promise<void> Initialize favorite properties for the provided IModelConnection. remove(field: Field, projectId?: string, imodelId?: string): Promise<void> Removes favorite properties from scopes that there is info about. Deprecated remove(field: Field, imodel: IModelConnection, scope: FavoritePropertiesScope): Promise<void> Removes favorite properties from a scope specified and all the more general scopes. sortFields(imodel: IModelConnection, fields: Field[]): Field[] Sorts an array of fields with respect to favorite property order. Properties Name Type Description onFavoritesChanged BeEvent<() => void> Event raised after favorite properties have changed. Defined in presentation/frontend/src/presentation-frontend/favorite-properties/FavoritePropertiesManager.ts Line 62 Last Updated: 12 June, 2024