DatacoreComponentView
cartographer / DatacoreComponentView
Abstract Class: DatacoreComponentView
Section titled “Abstract Class: DatacoreComponentView”Defined in: components/DatacoreComponentView.ts:20
Base class for Datacore component views in Obsidian Extends Obsidian’s ItemView to render components
Extends
Section titled “Extends”ItemView
Extended by
Section titled “Extended by”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new DatacoreComponentView(
leaf,settings):DatacoreComponentView
Defined in: components/DatacoreComponentView.ts:25
Parameters
Section titled “Parameters”WorkspaceLeaf
settings
Section titled “settings”Returns
Section titled “Returns”DatacoreComponentView
Overrides
Section titled “Overrides”ItemView.constructor
Properties
Section titled “Properties”settings
Section titled “settings”settings:
DatacoreSettings
Defined in: components/DatacoreComponentView.ts:21
items:
CatalogItem[] =[]
Defined in: components/DatacoreComponentView.ts:22
isLoading
Section titled “isLoading”isLoading:
boolean=false
Defined in: components/DatacoreComponentView.ts:23
Methods
Section titled “Methods”getActiveLibrary()
Section titled “getActiveLibrary()”getActiveLibrary():
Library|null
Defined in: components/DatacoreComponentView.ts:33
Get the currently active library configuration
Returns
Section titled “Returns”Library | null
getViewType()
Section titled “getViewType()”
abstractgetViewType():string
Defined in: components/DatacoreComponentView.ts:44
Get the view type (required by ItemView)
Returns
Section titled “Returns”string
Overrides
Section titled “Overrides”ItemView.getViewType
getDisplayText()
Section titled “getDisplayText()”
abstractgetDisplayText():string
Defined in: components/DatacoreComponentView.ts:49
Get the display text for the view (required by ItemView)
Returns
Section titled “Returns”string
Overrides
Section titled “Overrides”ItemView.getDisplayText
loadData()
Section titled “loadData()”
abstractloadData():Promise<void>
Defined in: components/DatacoreComponentView.ts:54
Load data from vault
Returns
Section titled “Returns”Promise<void>
renderComponent()
Section titled “renderComponent()”
abstractrenderComponent():Promise<void>
Defined in: components/DatacoreComponentView.ts:59
Render the component
Returns
Section titled “Returns”Promise<void>
onOpen()
Section titled “onOpen()”onOpen():
Promise<void>
Defined in: components/DatacoreComponentView.ts:61
Returns
Section titled “Returns”Promise<void>
0.9.7
Overrides
Section titled “Overrides”ItemView.onOpen
onClose()
Section titled “onClose()”onClose():
Promise<void>
Defined in: components/DatacoreComponentView.ts:71
Returns
Section titled “Returns”Promise<void>
0.9.7
Overrides
Section titled “Overrides”ItemView.onClose