sgNeoWebStudio – Action Reference

Browser – sgNeoWebCreate
Create a WebView2 browser inside a named Rectangle. The initial URL is optional.
Parameters: Rectangle name; optional initial URL.

Browser – sgNeoWebDestroy
Destroy the WebView2 browser attached to a Rectangle.
Parameters: Rectangle name.

Navigation – sgNeoWebNavigate
Navigate the browser attached to a Rectangle to a URL.
Parameters: Rectangle name; destination URL.
Example: sgNeoWebNavigate "WebRect" "https://example.com"

Navigation – sgNeoWebBack
Navigate backward in the WebView history.
Parameters: Rectangle name.
Example: sgNeoWebBack "WebRect"

Navigation – sgNeoWebForward
Navigate forward in the WebView history.
Parameters: Rectangle name.
Example: sgNeoWebForward "WebRect"

Navigation – sgNeoWebRefresh
Reload the current WebView document.
Parameters: Rectangle name.
Example: sgNeoWebRefresh "WebRect"

Navigation – sgNeoWebStop
Stop the current WebView navigation and pending resource fetches.
Parameters: Rectangle name.
Example: sgNeoWebStop "WebRect"

Navigation – sgNeoWebControl
Perform Back, Forward, Refresh or Stop using a selectable browser operation.
Parameters: Rectangle name; operation (Back, Forward, Refresh or Stop).

Content – sgNeoWebSetHTML
Display an HTML document in the browser attached to a Rectangle.
Parameters: Rectangle name; HTML content.

JavaScript – sgNeoWebExecuteJS
Execute JavaScript in a Rectangle WebView and optionally store the JSON result in a NeoBook variable.
Parameters: Rectangle name; JavaScript source; optional result variable.
Example: sgNeoWebExecuteJS "WebRect" "document.title" "[JSResult]"

JavaScript bridge – sgNeoWebBridge
Configure JavaScript-to-VisualNEO messaging for a Rectangle. Incoming messages are stored in a variable and can trigger a VisualNEO action script.
Parameters: Rectangle name; message variable; optional action script (configure in the action editor).

JavaScript bridge – sgNeoWebPostMessage
Send a text message from VisualNEO to the JavaScript page in a Rectangle.
Parameters: Rectangle name; message text.

Events – sgNeoWebOnEvent
Configure a browser event callback. Supported events: NavigationStarting, NavigationCompleted, ContentLoading, TitleChanged, SourceChanged and ProcessFailed.
Parameters: Rectangle name; event name; destination variable and/or action script as configured in the action editor.

Information – sgNeoWebGetInfo
Retrieve the current URL, document title, back/forward availability or WebView creation status into a VisualNEO variable.
Parameters: Rectangle name; information key; destination variable. Keys: URL, TITLE, CAN_GO_BACK, CAN_GO_FORWARD, WEBVIEW_CREATED.
Example: sgNeoWebGetInfo "WebRect" "URL" "[BrowserInfo]"

Zoom – sgNeoWebSetZoom
Set WebView zoom percentage from 25 to 500.
Parameters: Rectangle name; zoom percentage.
Example: sgNeoWebSetZoom "WebRect" "125"

Zoom – neoWebGetZoom
Get current WebView zoom percentage into a VisualNEO variable.
Parameters: Rectangle name; destination variable.

File I/O – sgNeoWebLoadFile
Load a local HTML file into the WebView2 Rectangle. Relative CSS, JavaScript, image and other resource URLs resolve relative to the HTML file.
Parameters: Rectangle name; local HTML file path.

File I/O – sgNeoWebLoadFolder
Load a local web application folder using its start page (index.html by default). Relative assets resolve relative to the start page.
Parameters: Rectangle name; application folder; optional start page if exposed by the action editor.

Console – sgNeoWebDebugConsole
Capture JavaScript console.log/info/warn/error/debug, uncaught errors and unhandled promise rejections. Stores each JSON event in a variable and optionally runs an action script.
Parameters: Rectangle name; output variable; optional VisualNEO action script.

Console – sgNeoWebDebugClear
Clear the VisualNEO variable configured for JavaScript debug console output.
Parameters: Rectangle name.
Example: sgNeoWebDebugClear "WebRect"

Web components – sgNeoWebTabulator
Create or replace a Tabulator data grid in an HTML element. Requires the local Tabulator JavaScript and CSS assets in the loaded web application.
Parameters: Rectangle name; target HTML element ID; grid configuration/data arguments as exposed in the action editor.

Web components – sgNeoWebQuillEditor
Create or replace a Quill rich-text editor in an HTML element. Requires the local Quill JavaScript and CSS assets in the loaded web application.
Parameters: Rectangle name; target HTML element ID; editor configuration/content arguments as exposed in the action editor.

Web components – sgNeoWebECharts
Create or replace an Apache ECharts visualisation in an HTML element. Requires the local ECharts JavaScript asset in the loaded web application.
Parameters: Rectangle name; target HTML element ID; ECharts option/configuration arguments as exposed in the action editor.

Publication setup – neoWebPrepareAssets
Register bundled ECharts, themes, Tabulator and/or Quill files as VisualNEO publication dependencies. Components: ECHARTS, THEMES, TABULATOR, QUILL or ALL. Run during publication setup/design before publishing.
Parameters: Component selection: ECHARTS, THEMES, TABULATOR, QUILL or ALL.