Methods
(static) connectProc(proc, loadingIconopt, reloadIconopt)
Connects the default UI signals for a procedure. This includes a default error handler, a loading icon with cancellation handler and a reload icon with the appropriate click handler.
- Parameters:
-
Name Type Attributes Description proc
{Procedure} the RapidContext.Procedure
instanceloadingIcon
{Icon} <optional>
the loading icon, or null
reloadIcon
{Icon} <optional>
the reload icon, or null
- See:
- RapidContext.Procedure
- Source:
- RapidContext_UI.js, line 83
(static) create(nodeOrName, attrsopt) → {Node}
Creates a DOM element with attributes and child content. Also supports building a UI recursively from either an XML document or an XML string.
- Parameters:
-
Name Type Attributes Description nodeOrName
{String/Node} the element name or UI to create attrs
{Object} <optional>
the optional name-value attribute mappings ...content
{Node/String} <optional>
the child nodes or text - Returns:
- {Node} the DOM element node created
- Source:
- rapidcontext/ui/create.mjs, line 15
(static) showError(…argopt)
Displays an error message for the user. This operation may or may not block the user interface, while the message is being displayed (depending on implementation). All arguments will be concatenated and displayed.
- Parameters:
-
Name Type Attributes Description arg
{String|Error} <optional>
<repeatable>
the messages or errors to display - Source:
- RapidContext_UI.js, line 34