Class $k.UI

Provides UI interaction in action scripts

Class Summary
Constructor Attributes Constructor Name and Description
 
$k.UI()

Method Summary

Class Detail

$k.UI()

Method Detail

  • alert(message, windowTitle)
    Show a notification dialog
    Parameters:
    {string} message
    {string} windowTitle Optional
  • {object} choose(objects, message, windowTitle, stringFunction)
    Let the user choose an object from a list
    Parameters:
    {object[]} objects
    {string} message
    {string} windowTitle Optional
    {function} stringFunction Optional
    Function that returns a string that should be displayed for an element
    Returns:
    {object}
  • {boolean} confirm(message, windowTitle)
    Show a confirmation dialog
    Parameters:
    {string} message
    {string} windowTitle Optional
    Returns:
    {boolean}
  • openEditor(topic)
    Opens an editor on the element
    Parameters:
    {$k.SemanticElement} topic
  • {string} requestString(message, windowTitle)
    Let the user enter a string in a single-line input field
    Parameters:
    {string} message
    {string} windowTitle Optional
    Returns:
    {string}