Class: Legend

Legend(_extensionUri)

Class representing a legend in the sidebar.

Constructor

new Legend(_extensionUri)

Create an instance of the Legend.
Parameters:
Name Type Description
_extensionUri Extension URI.
Source:

Methods

_getHtmlForWebview(webview)

Create HTML content of the WebView.
Parameters:
Name Type Description
webview WebView instance.
Source:
Returns:
HTML content.

resolveWebviewView(webviewView)

Revolves a webview view. resolveWebviewView is called when a view first becomes visible. This may happen when the view is first loaded or when the user hides and then shows a view again.
Parameters:
Name Type Description
webviewView Webview view to restore. The provider should take ownership of this view. The provider must set the webview's .html and hook up all webview events it is interested in.
Source:

setLegendData(legendData)

Set list of legend elements.
Parameters:
Name Type Description
legendData List of legend elements.
Source:

showLegend()

Send message with list of legend elements to the legend.js file.
Source: