RAGE.Ui.HtmlWindow.ExecuteJs: Difference between revisions
(Created page with "==Syntax== <pre>void HtmlWindow.ExecuteJs(string code);</pre> === Required Arguments === *'''code:''' Command line for JS console; {{CSharpContainer| <syntaxhighlight lang=...") |
No edit summary |
||
| Line 10: | Line 10: | ||
HtmlWindow CEF; | HtmlWindow CEF; | ||
private void openUI { | private void openUI() { | ||
CEF = new HtmlWindow("package://cef/index.html"); | CEF = new HtmlWindow("package://cef/index.html"); | ||
cef.executeJs("startFunction(\"Argument 1\", \"Argument 2\")"); | cef.executeJs("startFunction(\"Argument 1\", \"Argument 2\")"); | ||
Revision as of 06:36, 20 July 2019
Syntax
void HtmlWindow.ExecuteJs(string code);
Required Arguments
- code: Command line for JS console;
C# Syntax
HtmlWindow CEF;
private void openUI() {
CEF = new HtmlWindow("package://cef/index.html");
cef.executeJs("startFunction(\"Argument 1\", \"Argument 2\")");
Rage.Ui.Cursor.Visable = true;
}