obsidian-callout-manager icon indicating copy to clipboard operation
obsidian-callout-manager copied to clipboard

CalloutManager doesn't have `getTitle`

Open prurph opened this issue 1 year ago • 1 comments

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.

prurph avatar Oct 30 '23 01:10 prurph

As of version 1.1.0, this is now fixed!

eth-p avatar Jun 02 '24 02:06 eth-p