You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Either {@link MarkdownPostProcessorContext} or {@link Component}.
19
+
* Either a [Component](https://docs.obsidian.md/Reference/TypeScript+API/Component) or a [MarkdownPostProcessorContext](https://docs.obsidian.md/Reference/TypeScript+API/MarkdownPostProcessorContext).
20
20
*/
21
21
exportinterfaceComponentLike{
22
22
addChild(child: Component): void;
@@ -38,48 +38,60 @@ export class ObsidianAPI extends API<MetaBindPlugin> {
* Wraps any mountable in a [MarkdownRenderChild](https://docs.obsidian.md/Reference/TypeScript+API/MarkdownRenderChild)
43
+
* and adds it as a child to the passed in {@link ComponentLike}.
44
+
*
45
+
* A {@link ComponentLike} is either a [Component](https://docs.obsidian.md/Reference/TypeScript+API/Component) or a [MarkdownPostProcessorContext](https://docs.obsidian.md/Reference/TypeScript+API/MarkdownPostProcessorContext)
46
+
*
47
+
* @param mountable the mountable to wrap in a [MarkdownRenderChild](https://docs.obsidian.md/Reference/TypeScript+API/MarkdownRenderChild)
48
+
* @param containerEl the element to mount the [MarkdownRenderChild](https://docs.obsidian.md/Reference/TypeScript+API/MarkdownRenderChild) to
49
+
* @param component the {@link ComponentLike} to register the [MarkdownRenderChild](https://docs.obsidian.md/Reference/TypeScript+API/MarkdownRenderChild) to
cause: `Invalid inline field type "${inlineFieldType}"`,
83
95
});
84
96
}
85
97
@@ -88,9 +100,9 @@ export class ObsidianAPI extends API<MetaBindPlugin> {
88
100
*
89
101
* This requires JS Engine to be installed and enabled!
90
102
*
91
-
* @param bindTargets
92
-
* @param lifecycleHook
93
-
* @param callback
103
+
* @param bindTargets the bind targets to listen to
104
+
* @param lifecycleHook a [Component](https://docs.obsidian.md/Reference/TypeScript+API/Component)
105
+
* @param callback the callback to call with all the values of the bind targets when one of them changes. What ever this callback returns will be rendered by the reactive component.
0 commit comments