This module provides utility functions for working with Dataview in Obsidian.
| Function |
Description |
| getRenderedContainer |
Renders the content using the provided renderer function in a temporary container, and then returns the container. |
| insertCodeBlock |
Inserts a code block into the specified Dataview instance using the provided language and code. |
| reloadCurrentFileCache |
Reloads the current file cache using the Dataview API. |
| renderIframe |
Renders an iframe in the Dataview container with the specified relative path, width, and height. |
| renderPaginatedList |
Renders a paginated list using the provided DataviewInlineApi instance. |
| renderPaginatedTable |
Renders a paginated table using the provided DataviewInlineApi instance. |
| Variable |
Description |
| DATAVIEW_PLUGIN_ADAPTER |
The ThirdPartyPluginAdapter of Dataview, for watchThirdPartyPluginApi, the waits and createThirdPartyPluginDependency. It reads plugin.api, the same object Dataview installs as the DataviewAPI global, and verifies the query entry points (page, pages, query) before handing it over typed as DataviewApi, whose declarations come from @mnaoumov/obsidian-dataview. |
| DATAVIEW_PLUGIN_ID |
Dataview’s plugin id, as its manifest declares it. |