Skip to content

PropertiesPlugin

Unofficial

Internal plugin registration for the properties (frontmatter metadata) feature.

Import:

import type { PropertiesPlugin } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface PropertiesPlugin extends InternalPlugin<PropertiesPluginInstance>

Extends: InternalPlugin<PropertiesPluginInstance>

Constructor

new PropertiesPlugin(app: App, instance: PropertiesPluginInstance, internalPlugins: InternalPlugins)

Constructor.

To get the constructor instance, use getInternalPluginConstructor from obsidian-typings/implementations.

Properties

PropertyTypeDescription
_childrenComponent[]Child Components attached to current component, will be unloaded on unloading parent component.
(Inherited from InternalPlugin)
_eventsEventRef[]Events that are attached to the current component, will be detached on unloading parent component.
(Inherited from InternalPlugin)
_loadedbooleanWhether the component and its children are loaded.
(Inherited from InternalPlugin)
addedButtonElsHTMLDivElement[]Button elements added by this plugin.
(Inherited from InternalPlugin)
appAppReference to the app.
(Inherited from InternalPlugin)
commandsCommand[]Commands registered by this plugin.
(Inherited from InternalPlugin)
enabledbooleanWhether this plugin is currently enabled.
(Inherited from InternalPlugin)
hasStatusBarItembooleanWhether this plugin has a status bar item.
(Inherited from InternalPlugin)
instancePropertiesPluginInstanceThe plugin instance containing the actual logic.
(Inherited from InternalPlugin)
lastSavenumberTimestamp of the last settings save.
(Inherited from InternalPlugin)
managerInternalPluginsReference to the internal plugins manager.
(Inherited from InternalPlugin)
mobileFileInfoMobileFileInfo[]Mobile file info renderers registered by this plugin.
(Inherited from InternalPlugin)
onConfigFileChangeDebouncer<[], Promise<void>>Debounced handler for config file changes.
(Inherited from InternalPlugin)
ribbonItemsRibbonItem[]Ribbon items registered by this plugin.
(Inherited from InternalPlugin)
statusBarElHTMLDivElement | nullStatus bar element for this plugin, or null if none.
(Inherited from InternalPlugin)
viewsRecord<string, ViewCreator>View creators registered by this plugin, keyed by view type.
(Inherited from InternalPlugin)

Methods

MethodReturnsDescription
addChild(component)TAdds a child component, loading it if this component is loaded.
(Inherited from InternalPlugin)
addSettingTab(settingTab)voidAdd a settings tab for this plugin.
(Inherited from InternalPlugin)
deleteData()Promise<void>Delete persisted data for this plugin.
(Inherited from InternalPlugin)
disable(isDisabledByUser?)voidDisable this plugin.
(Inherited from InternalPlugin)
enable(isEnabledByUser?)Promise<void>Enable this plugin.
(Inherited from InternalPlugin)
getModifiedTime()Promise<number | undefined>Get the last modified time of the plugin config file.
(Inherited from InternalPlugin)
handleConfigFileChange()Promise<void>Handle changes to the plugin config file.
(Inherited from InternalPlugin)
init()voidInitialize this plugin.
(Inherited from InternalPlugin)
load()voidLoad this component and its children.
(Inherited from InternalPlugin)
loadData()Promise<null | object>Load persisted data for this plugin.
(Inherited from InternalPlugin)
onload()voidOverride this to load your component.
(Inherited from InternalPlugin)
onunload()voidOverride this to unload your component
(Inherited from InternalPlugin)
register(cb)voidRegisters a callback to be called when unloading.
(Inherited from InternalPlugin)
registerDomEvent(el, type, callback, options?)voidRegisters a DOM event to be detached when unloading.
(Inherited from InternalPlugin)
registerDomEvent(el, type, callback, options?)voidRegisters a DOM event to be detached when unloading
(Inherited from InternalPlugin)
registerDomEvent(el, type, callback, options?)voidRegisters a DOM event to be detached when unloading
(Inherited from InternalPlugin)
registerEvent(eventRef)voidRegisters an event to be detached when unloading.
(Inherited from InternalPlugin)
registerGlobalCommand(command)voidRegister a global command for this plugin.
(Inherited from InternalPlugin)
registerInterval(id)numberRegisters an interval (from setInterval) to be cancelled when unloading. Use window.setInterval instead of setInterval to avoid TypeScript confusing between NodeJS vs Browser API
(Inherited from InternalPlugin)
registerMobileFileInfo(renderCallback)voidRegister a mobile file info renderer callback.
(Inherited from InternalPlugin)
registerRibbonItem(title, icon, callback)voidRegister a ribbon item button for this plugin.
(Inherited from InternalPlugin)
registerScopeEvent(keymapEventHandler)voidRegister a scope keymap event handler to be removed on unload.
(Inherited from InternalPlugin)
registerStatusBarItem()voidRegister a status bar item for this plugin.
(Inherited from InternalPlugin)
registerViewType(type, creator)voidRegister a view type with its creator function.
(Inherited from InternalPlugin)
removeChild(component)TRemoves a child component, unloading it.
(Inherited from InternalPlugin)
saveData(data)Promise<void>Save data for this plugin.
(Inherited from InternalPlugin)
unload()voidOverride this to unload your component.
(Inherited from InternalPlugin)

Links to this page: