The web view that displays the grid. Users won’t interact with this module directly, but it is used by the GridCraft module. We consider this an internal module and provide no stability guarantees between minor versions.
API Overview #
- Constants - Useful values which cannot be changed
- Functions - API calls offered directly by the extension
- Constructors - API calls which return an object, typically one that offers API methods
API Documentation #
Constants #
css #
Signature | GridCraft.WebView.css |
Type | Constant |
Description | The CSS for the web view |
js #
Signature | GridCraft.WebView.js |
Type | Constant |
Description | The JavaScript for the web view |
Functions #
itemTableHtml #
Signature | GridCraft.WebView.itemTableHtml(table) -> string |
Type | Function |
Description | Generates an HTML table from a list of items. |
Parameters |
|
Returns |
|
webViewHtml #
Signature | GridCraft.WebView.webViewHtml(string, string) -> string |
Type | Function |
Description | Generates the complete HTML for a web view, including the title, CSS, JS, and item table. |
Parameters |
|
Returns |
|
configuredScreen #
Signature | GridCraft.WebView.configuredScreen(config) -> hs.screen object |
Type | Function |
Description | Returns the screen that is configured for the web view. |
Parameters |
|
Returns |
|
resizeCenter #
Signature | GridCraft.WebView.resizeCenter(hs.webview.object, [number], [number]) -> hs.webview.object |
Type | Function |
Description | Resizes and centers a web view on the main screen. |
Parameters |
|
Returns |
|
Constructors #
webView #
Signature | GridCraft.WebView.webView(string, table, number, number) -> hs.webview object |
Type | Constructor |
Description | Creates a new web view intended for modal messages. |
Parameters |
|
Returns |
|