Skip to content

BasesPluginInstance

Unofficial

Bases plugin instance.

Import:

import type { BasesPluginInstance } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface BasesPluginInstance extends InternalPluginInstance<BasesPlugin>

Extends: InternalPluginInstance<BasesPlugin>

Properties

PropertyTypeDescription
appAppAn Obsidian app instance.
defaultOnbooleanWhether the default on.
descriptionstringHuman-readable description of this plugin.
(Inherited from InternalPluginInstance)
functionsBasesFunctionsThe functions.
handlersBasesHandlersThe handlers.
idstringUnique identifier for this plugin.
(Inherited from InternalPluginInstance)
namestringHuman-readable display name of this plugin.
(Inherited from InternalPluginInstance)

Methods

MethodReturnsDescription
createAndEmbedBase(editor)Promise<void>Creates and embeds a base.
createNewBasesFile(location?, filename?, contents?)Promise<TFile>Creates a new bases file.
deregisterFunction(name)voidDeregisters a function.
deregisterView(type)voidDeregisters a view.
getFunction(name)BasesFunction | nullGets a function.
getOperatorFunctions()BasesFunction[]Gets the operator functions.
getViewFactory(type)null | ViewFactoryGets a view factory.
getViewTypes()string[]Gets the view types.
init(app, plugin)voidInitialize the plugin instance with app and plugin references.
(Inherited from InternalPluginInstance)
onDisable(app, plugin)voidCalled when the plugin is disabled.
(Inherited from InternalPluginInstance)
onEnable(app, plugin)Promise<void>Called when the plugin is enabled.
(Inherited from InternalPluginInstance)
onFileMenu(menu, file, source, leaf?)voidOn file menu.
onUserDisable(app)voidCalled when the user manually disables the plugin.
(Inherited from InternalPluginInstance)
onUserEnable(app)voidCalled when the user manually enables the plugin.
(Inherited from InternalPluginInstance)
registerFunction(fn)voidRegisters a function.
registerView(type, viewFactory)voidRegisters a view.

Links to this page: