Windows
The section of the package is responsible for controlling how and when a window is opened.
Index
ModelSelectionGUI.close_windowsModelSelectionGUI.create_applicationModelSelectionGUI.get_url_from_pathModelSelectionGUI.open_windowModelSelectionGUI.open_window
Contents
ModelSelectionGUI.create_application — Methodcreate_application()Create a new Electron application.
This function creates a new Electron application by closing any existing Electron application and initializing a new Application object.
Example
create_application()ModelSelectionGUI.open_window — Methodopen_window(; path::Union{String, Nothing} = nothing)Open a window with the specified path of the server. The server host and port are taken from the SERVER_HOST and SERVER_PORT global variable.
path: Optional string specifying the path on the server to open in the window. Ifnothing, the root path of the server is opened.
Example
open_window(path = "/docs")ModelSelectionGUI.open_window — Methodopen_window(url::String)Open a window with the specified url.
url: String specifying the url to open in the window. Ifnothing.
Example
open_window("http://localhost:8000")ModelSelectionGUI.close_windows — Methodclose_windows()Open a window with the specified url.
url: String specifying the url to open in the window. Ifnothing.
Example
close_windows(path = "/docs", port = 8080)ModelSelectionGUI.get_url_from_path — Functionget_url_from_path(path::Union{String,Nothing} = nothing)Generates a URL string based on the provided path and global settings SERVER_HOST, SERVER_PORT, and SSL_ENABLED.
Parameters
path::Union{String,Nothing}: an optional argument which denotes the specific path to be appended to the base URL. If not provided, the function generates a base URL only.
Returns
String: The URL as a string.
Example
url = get_url_from_path("/api/data")