new $k.UI()
Provides UI interaction in action scripts
Methods
alert(message, windowTitle)
Show a notification dialog
Name | Type | Description |
---|---|---|
message |
string | |
windowTitle |
string | optional |
choose(objects, message, windowTitle, stringFunction) : object
Let the user choose an object from a list
Name | Type | Description |
---|---|---|
objects |
Array.<object> | |
message |
string | |
windowTitle |
string | optional |
stringFunction |
function |
optional
Function that returns a string that should be displayed for an element |
Returns:
Type | Description |
---|---|
object |
chooseMultiple(objects, message, windowTitle, stringFunction) : objects
Let the user choose some objects from a list
Name | Type | Description |
---|---|---|
objects |
Array.<object> | |
message |
string | |
windowTitle |
string | optional |
stringFunction |
function |
optional
Function that returns a string that should be displayed for an element |
Returns:
Type | Description |
---|---|
objects |
confirm(message, windowTitle) : boolean
Show a confirmation dialog
Name | Type | Description |
---|---|---|
message |
string | |
windowTitle |
string | optional |
Returns:
Type | Description |
---|---|
boolean |
notificationDialog(notificationFunction, parameters, windowTitle)
Open a notification dialog that stays open while the notification function is evaluated
Name | Type | Description |
---|---|---|
notificationFunction |
function |
Notification function |
parameters |
Array.<boolean> | optional |
windowTitle |
string | optional |
- Since:
- 4.1.0
- See:
-
- UIObject#raiseNotification
openEditor(element, context)
Opens an editor on the element
Name | Type | Description |
---|---|---|
element |
$k.SemanticElement | |
context |
optional
Context that should be used to detect the view configuration, or a view configuration |
openTable(elements, domain, context)
Opens a table on the elements
Name | Type | Description |
---|---|---|
elements |
Array.<$k.SemanticElement> | |
domain |
$k.Domain |
optional
Domain or internal name of a type of the table |
context |
optional
Context that should be used to detect the table configuration, or a table configuration |
- Since:
- 4.2.1
raiseNotification(jseString)
Raise message notification (to use in function #notificationDialog)
Name | Type | Description |
---|---|---|
jseString |
string |
- Since:
- 4.1.0
- See:
-
- UIObject#notificationDialog
requestString(message, windowTitle, initialAnswer) : string
Let the user enter a string in a single-line input field
Name | Type | Description |
---|---|---|
message |
string | |
windowTitle |
string | optional |
initialAnswer |
string | optional |
Returns:
Type | Description |
---|---|
string |