obsidian-dev-utils
Version:
This is the collection of useful functions that you can use for your Obsidian plugin development
21 lines (20 loc) • 576 B
text/typescript
/**
* @packageDocumentation
*
* Initializes the plugin context and sets up the plugin ID.
*/
import type { App } from 'obsidian';
/**
* Sets the CSS class of an element.
*
* @param el - The element to set the CSS class of.
* @param cssClasses - The CSS classes to set.
*/
export declare function addPluginCssClasses(el: HTMLElement, ...cssClasses: string[]): void;
/**
* Initializes the plugin context.
*
* @param app - The Obsidian app instance.
* @param pluginId - The plugin ID.
*/
export declare function initPluginContext(app: App, pluginId: string): void;