Skip to content

BasesEntry

Official

Represent a single “row” or file in a base.

Import:

import { BasesEntry } from 'obsidian';

Signature:

export class BasesEntry implements FormulaContext

Implements: FormulaContext

Constructor

new BasesEntry(ctx: unknown, file: TFile)

Constructor.

To get the constructor instance, use getBasesEntryConstructor from obsidian-typings/implementations.

Properties

PropertyTypeDescription
fileTFileFile.

Methods

MethodReturnsDescription
getByIdentifier(identifier)ValueGets the value for a built-in or property identifier (e.g. this, note, file, formula, or a property name).
getPropertyKeys()string[]Gets the frontmatter property keys of the entry.
getRawProperty(key)unknownGets the raw (un-wrapped) frontmatter value for a key.
getValue(propertyId)Value | nullGet the value of the property. Note: Errors are returned as ErrorValue
keys()string[]Gets all accessible keys on the entry (frontmatter keys plus this, note, file, formula).

Links to this page: