Skip to content

BasesView.updateProperty method

BasesView › updateProperty

Unofficial

Updates a single frontmatter property on a file within a transaction.

Signature:

updateProperty(file: TFile, property: `note.${string}` | `formula.${string}` | `file.${string}`, value: unknown): Promise<void>

Parameters:

ParameterTypeDescription
fileTFileThe file to update.
propertynote.${string} | formula.${string} | file.${string}The property to update.
valueunknownThe new value.

Returns: Promise<void>A promise that resolves when the update is committed.