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:

Parameter Type Description
file TFile The file to update.
property note.${string} | formula.${string} | file.${string} The property to update.
value unknown The new value.

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