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

Property Type Description
file TFile File.

Methods

Method Returns Description
getByIdentifier(identifier) Value Gets 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) unknown Gets the raw (un-wrapped) frontmatter value for a key.
getValue(propertyId) Value | null Get 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: