Class OpenModalDialog

All Implemented Interfaces:
Future<Void>, Associator, Eligible

public class OpenModalDialog extends ConsoleCommand
Causes a modal dialog to be display on behalf of the conlet.
  • Constructor Details

    • OpenModalDialog

      public OpenModalDialog(String conletType, String conletId, Future<String> content, Map<String,Object> options)
      Creates a new event.

      The content must be valid HTML, i.e. it must start with a tag. See the JavaScript documentation of the modal dialog options for details.

      Parameters:
      conletType - the conlet type
      conletId - the conlet id
      content - the content (valid HTML)
      options - the options (must be serializable as JSON), see the JavaScript documentation of the modal dialog options for details.
    • OpenModalDialog

      public OpenModalDialog(String conletType, String conletId, Future<String> content)
      Creates a new event without any options.

      The content must be valid HTML, i.e. it must start with a tag.

      Parameters:
      conletType - the conlet type
      conletId - the conlet id
      content - the content (valid HTML)
  • Method Details