Extends
Methods
-
<static> container(settings)
-
Load vtl file content in an existing html container (div)
Parameters:
Name Type Description settings
ix.loader~ContainerSettings Returns:
- Type
- undefined
Examples
ix.loader.container({ vm: "internal/system/vm/html/include/sample.vm", htmlTarget: [div] });
ix.loader.container({ vm: "internal/system/vm/html/include/sample.vm", htmlTarget: [div], ixApp: { guid: "C6F004594EEA424B2AACCD105181AD7F0660DF6D", pageGuid: "21A1FAA5770A6DFF0C43D0B7C6AB3812846B6F7C", }, actionClose: function() { }, data: { "rq_param1": "hello world" } });
-
<static> load(settings)
-
Load intrexx page in the current window / tooltip / popup
Parameters:
Name Type Description settings
ix.loader~LoadSettings Example
ix.loader.load({ ixApp: { guid: "C6F004594EEA424B2AACCD105181AD7F0660DF6D", pageGuid: "21A1FAA5770A6DFF0C43D0B7C6AB3812846B6F7C", }, html: [element] });
-
<static> popup(settings)
-
Load intrexx page in a new popup window.
Parameters:
Name Type Description settings
ix.loader~PopupSettings Examples
ix.loader.popup({ ixApp: { guid: "C6F004594EEA424B2AACCD105181AD7F0660DF6D", pageGuid: "21A1FAA5770A6DFF0C43D0B7C6AB3812846B6F7C", } });
ix.loader.popup({ ixApp: { guid: "C6F004594EEA424B2AACCD105181AD7F0660DF6D", pageGuid: "21A1FAA5770A6DFF0C43D0B7C6AB3812846B6F7C", }, windowSettings: { width: 200, htmlTarget: [element] }, data: { "rq_param1": "hello world" } });
-
<static> stage(settings)
-
Load intrexx page in the intrexx main window
Parameters:
Name Type Description settings
ix.loader~StageSettings Example
ix.loader.stage({ ixApp: { guid: "C6F004594EEA424B2AACCD105181AD7F0660DF6D", pageGuid: "21A1FAA5770A6DFF0C43D0B7C6AB3812846B6F7C", }, data: { "rq_param1": "hello world" } });
-
<static> tooltip(settings)
-
Load intrexx page in a new tooltip popup.
Parameters:
Name Type Description settings
ix.loader~TooltipSettings Returns:
- Type
- undefined
Examples
ix.loader.tooltip({ ixApp: { guid: "C6F004594EEA424B2AACCD105181AD7F0660DF6D", pageGuid: "21A1FAA5770A6DFF0C43D0B7C6AB3812846B6F7C", } });
ix.loader.tooltip({ ixApp: { guid: "C6F004594EEA424B2AACCD105181AD7F0660DF6D", pageGuid: "21A1FAA5770A6DFF0C43D0B7C6AB3812846B6F7C", }, windowSettings: { position: "embedded", htmlTarget: getElement("CONTAINER-GUID") }, actionClose: function() { }, data: { "rq_param1": "hello world" } });
// full screen tooltip ix.loader.tooltip({ ixApp: { guid: "C6F004594EEA424B2AACCD105181AD7F0660DF6D", pageGuid: "21A1FAA5770A6DFF0C43D0B7C6AB3812846B6F7C", }, windowSettings: { position: "window", alignment: "top_left", width: -1, height: -1, key: "fooBar" }, actionClose: function() { }, data: { "rq_param1": "hello world" } }); // Close Tooltip var oTooltipPopup = getTooltipByKey("fooBar"); oTooltipPopup.close();
Type Definitions
-
ContainerSettings
-
Type:
- Object
Properties:
Name Type Argument Description ixApp
ix.loader~IntrexxApp <optional>
application context.
vm
String <optional>
Load static vtl file.
data
Object <optional>
Data to be sent to the server. It will be appended to query string.
html
HTMLElement <optional>
An element in the Document Object Model (DOM).
fup
Object <optional>
Reference to a functional part
close
Boolean <optional>
Close current window.
reloadByChange
Boolean <optional>
Reload current window. Initiated actions: actMerge, actDelete.
actionClose
function <optional>
A function to be called when the tooltip popup closes.
actionChange
function <optional>
Callback function. Initiated actions: actMerge, actDelete. Overwrites default reloadByChange action.
key
String <optional>
Identifier.
-
IntrexxApp
-
Type:
- Object
Properties:
Name Type Argument Description guid
String Intrexx application guid.
pageGuid
String Intrexx page guid.
recId
String <optional>
Record ID.
-
LoadSettings
-
Type:
- Object
Properties:
Name Type Argument Description ixApp
ix.loader~IntrexxApp <optional>
Target application.
data
Object <optional>
Data to be sent to the server. It will be appended to query string.
html
HTMLElement <optional>
An element in the Document Object Model (DOM) to determine current window / tooltip / popup.
fup
Object <optional>
Reference to a functional part
close
Boolean <optional>
Close current window.
-
PopupSettings
-
Type:
- Object
Properties:
Name Type Argument Description ixApp
ix.loader~IntrexxApp <optional>
Intrexx application info.
vm
String <optional>
Load static vtl file.
data
Object <optional>
Data to be sent to the server. It will be appended to query string.
html
HTMLElement <optional>
An element in the Document Object Model (DOM).
fup
Object <optional>
Reference to a functional part
windowSettings
ix.loader~PopupWindowSettings <optional>
close
Boolean <optional>
Close current window.
-
PopupWindowSettings
-
Type:
- Object
Properties:
Name Type Argument Description width
Number <optional>
Popup width.
height
Number <optional>
Popup height.
offsetX
Number <optional>
Horizontal offset.
offsetY
Number <optional>
Vertical offset.
htmlTarget
Boolean <optional>
An element in the Document Object Model (DOM).
resize
Boolean <optional>
Resize by content
-
StageSettings
-
Type:
- Object
Properties:
Name Type Argument Default Description ixApp
ix.loader~IntrexxApp <optional>
Target application.
data
Object <optional>
Data to be sent to the server. It will be appended to query string.
html
HTMLElement <optional>
An element in the Document Object Model (DOM).
fup
Object <optional>
Reference to a functional part
close
Boolean <optional>
Close current window.
addHistoryEntry
Boolean <optional>
true Add history entry
-
TooltipSettings
-
Type:
- Object
Properties:
Name Type Argument Description ixApp
ix.loader~IntrexxApp <optional>
Target application.
vm
String <optional>
Load static vtl file.
data
Object <optional>
Data to be sent to the server. It will be appended to query string.
html
HTMLElement <optional>
An element in the Document Object Model (DOM).
fup
Object <optional>
Reference to a functional part
windowSettings
ix.loader~TooltipWindowSettings <optional>
close
Boolean <optional>
Close current window.
reloadByChange
Boolean <optional>
Reload current window. Initiated actions: actMerge, actDelete.
actionClose
function <optional>
A function to be called when the tooltip popup closes.
actionChange
function <optional>
Callback function. Initiated actions: actMerge, actDelete. Overwrites default reloadByChange action.
actionBeforeLoad
function <optional>
Callback function
actionAfterLoad
function <optional>
Callback function
actionBeforeUnload
function <optional>
Callback function
actionAfterUnload
function <optional>
Callback function
-
TooltipWindowSettings
-
Type:
- Object
Properties:
Name Type Argument Default Description key
String <optional>
Identifier.
title
String <optional>
Tooltip Title.
closeByButton
Boolean <optional>
Show tooltip close button.
closeByEsc
Boolean <optional>
Close tooltip via ESC key.
closeByClick
Boolean <optional>
Close tooltip on click anywhere outside the tooltip.
htmlTarget
HTMLElement <optional>
An element in the Document Object Model (DOM).
position
String <optional>
Tooltip positioning. Values: "mouse" | "element" (depends on htmlTarget) | "window" | "absolute" | "embedded" (depends on htmlTarget) | "modal"
fixed
Boolean <optional>
true Tooltip position relative to viewport. Tooltip positioning must be set to "window" or "modal".
alignment
String <optional>
Alignment at current position. Possible values depends on position. e.g. "middle_center" | "above_right" | "below_right" | "below_center_left" | ...
keepVisible
Boolean <optional>
Tooltip is kept in the visible region, whenever possible.
overflowBoundaries
Object <optional>
{top: true, right: true, bottom: true, left: true} Keep tooltip in visible range and check specific boundaries. Set true to check boundary.
className
String <optional>
Tooltips style class.
width
Number <optional>
Fix tooltip width in px.
widthUnit
String <optional>
"px" Tooltip width unit. "px" | "vw" viewport width (width: 1-100)
height
Number <optional>
Fix tooltip height in px.
heightUnit
String <optional>
"px" Tooltip height unit. "px" | "vh" viewport height (height: 1-100)
offsetX
Number <optional>
Horizontal tooltip tooltip offset in px.
offsetY
Number <optional>
Vertical tooltip tooltip offset in px.
contentReplace
Boolean <optional>
true Tooltip removes content in target container. Requires Tooltip positioning "embedded".
contentRestore
Boolean <optional>
false Tooltip restores content of his target container on close. Requires Tooltip positioning "embedded".