Variable: ui
The ui namespace contains all the functions related to UI Elements. It can be accessed like this:constui:object=uiElementsNamespace.ui
Type declaration
createUIElement()
createUIElement: (Creates a UI element based on the provided settings and appends it to the specified parent container. As the bare minimum, thecreateUIElementParams) =>Promise<void>
uiElementSettings must include the uiElementName, and the operationSettings
must include the uiParentElementId where the new element will be appended. This function requires
authentication, which can be passed via the OperationSettings object.
Parameters
createUIElementParams
UIElementParams<unknown>
Parameters for creating the UI element, including settings for the element
and operation:
uiElementSettings- Settings for the UI element to be created. Must includeuiElementName, which determines the type of element to create. Example:{ uiElementName: 'transfer-list' }.operationSettings- Settings for the operation, including theuiParentElementIdwhere the new element will be appended. Must also include authentication details if required.
Returns
Promise<void>
Throws
InvalidParametersError - Thrown if required parameters are missing or invalid inuiElementSettings
or operationSettings.