DataviewInlineApi
Extended interface for the Dataview Inline API, providing additional methods for custom page types and array handling.
Import:
import type { DataviewInlineApi } from 'obsidian-dev-utils/obsidian/dataview';Signature:
export interface DataviewInlineApi extends DataviewInlineApiOriginalExtends: DataviewInlineApiOriginal
Methods
| Method | Returns | Description |
|---|---|---|
| array(arr) | DataArray<T> | Wraps an array of items into a DataArray object. |
| current() | CombinedPage<CustomFrontmatter> | Retrieves the current page, with an optional custom page type. |
| pages(query?) | DataArray<CombinedPage<CustomFrontmatter>> | Retrieves pages based on an optional query, with an optional custom page type. |
| paragraph(text, options?) | HTMLParagraphElement | Creates a paragraph HTML element with the provided text and optional DOM element options. |
Links to this page: