Skip to content

BasesView.createFileForView method

BasesView › createFileForView

Official

Display the new note menu for a file with the provided filename and optionally a function to modify the frontmatter.

Signature:

createFileForView(baseFileName?: string | undefined, frontmatterProcessor?: ((frontmatter: unknown) => void) | undefined): Promise<void>

Parameters:

Parameter Type Description
baseFileName? string | undefined The filename of the base file.
frontmatterProcessor? ((frontmatter: unknown) => void) | undefined A function to modify the frontmatter.

Returns: Promise<void>A promise that resolves when the file is created.

Since: 1.10.2