Skip to content

MetadataTypeManager.onCacheChanged method

MetadataTypeManager › onCacheChanged

Unofficial

Handles the metadata cache changed event: records the frontmatter properties of the changed note, inferring the widget of each property that has no assigned type.

Signature:

onCacheChanged(file: TFile, data: string, cache: CachedMetadata): void

Parameters:

ParameterTypeDescription
fileTFileThe changed file.
datastringThe file contents.
cacheCachedMetadataThe file's new metadata.

Returns: void