Working settings sync
This commit is contained in:
parent
9824d2ba31
commit
b87676d7b0
4 changed files with 12 additions and 5 deletions
5
view.tsx
5
view.tsx
|
|
@ -9,9 +9,10 @@ export const VIEW_TYPE_EXAMPLE = "example-view"
|
|||
|
||||
export class ExampleView extends ItemView {
|
||||
plugin: ExamplePlugin;
|
||||
constructor(leaf: WorkspaceLeaf) {
|
||||
constructor(leaf: WorkspaceLeaf, plugin: ExamplePlugin) {
|
||||
super(leaf)
|
||||
console.log(this.plugin.settings) }
|
||||
this.plugin = plugin
|
||||
}
|
||||
|
||||
getViewType() {
|
||||
return VIEW_TYPE_EXAMPLE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue