Tree Webview

Summary

This describes the Web View Implementation of a Tree View

Lifecycle

Lifecycle

Revealing a webview

A panel is a webview in the below diagram

stateDiagram-v2 state check <<choice>> [*] --> PanelCreated? PanelCreated? --> check check --> ViewVisible : true check --> ViewInitializing: false ViewInitializing --> ViewVisible

Initialize

During activation, Dendron initializes all views

setupViews {
	provider = new DendronTreeViewV2
	window.registerWebviewViewProvider(provider)
}

Individual views will initialize by calling resolveWebviewView

resolveWebviewView(webviewView) {
	// connect view to static assets
	prepareTreeView(webviewView)

	// setup listeners for events
	webviewView.webviewView.webview.onDidReceiveMessage(...)
}

Implementations


Backlinks