Skip to content

WebView.NavigateToStringAsync

method · WebView · cAlgo.API

DesktopCLICloud

Initiates a navigation asynchronously to html content as source HTML of a new document.

Environment behaviour

CLI — not supported. Accepted without error but never displayed, so control events such as Click are never raised.

Cloud — not supported. Accepted without error but never displayed, so control events such as Click are never raised.

public void NavigateToStringAsync(string html)
webView.NavigateToStringAsync(html: str) -> None

Parameters

Name C# type Python type Description
html string str HTML content

Examples

var webView = new WebView { Width = 300, Height = 120 };
webView.NavigateToStringAsync("<html><body><h3>" + SymbolName + " bid: " + Symbol.Bid + "</h3></body></html>");
Chart.AddControl(webView);
webView = WebView()
webView.Width = 300
webView.Height = 120
webView.NavigateToStringAsync(f"<html><body><h3>{api.SymbolName} bid: {api.Symbol.Bid}</h3></body></html>")
api.Chart.AddControl(webView)