obsidian-callout-manager
obsidian-callout-manager copied to clipboard
CalloutManager doesn't have `getTitle`
I'm attempting to use the API as described in the README, however the object returned only has getCallouts
and getColor
, not getTitle
. I'd like to be able to access the human-readable title to produce a snippet that will display a modal allowing the user to choose from all installed callouts to insert.
I am initializing as:
import {CalloutManager, getApi} from "obsidian-callout-manager";
class MyPlugin extends Plugin {
private calloutManager?: CalloutManager<true>;
public async onload() {
// Docs suggest getApi returns the object, but it actually returns a promise
this.app.workspace.onLayoutReady(async () => {
this.calloutManager = await getApi(this);
}
}
}
I also see the warnings mentioned in https://github.com/eth-p/obsidian-callout-manager/issues/8, but the callout manager does populate the callouts.
As of version 1.1.0, this is now fixed!