Displaying Custom Windows

Summary

  • AdapTable allows developers to provide custom windows
  • These are custom, movable, resizable with bespoke content

AdapTable allows developers to create and display bespoke Windows.

These windows will display the custom render content which was provided by the developer.

Find Out More

It is also possible to display Progress Indicators when running a long task

These can be displayed (and then hidden) at run-time using functions in the UserInterfaceApi.

Caution

These windows can be given an initial size and position and contain a Close button.

Hint

  • Custom Windows are also are fully movable and resizable
  • Windows that have been resized and / or moved, will display with those new properties when they re-open

The Custom Window is managed programatically via 2 companion functions in User Interface Api:

  • openCustomWindowPopup - displays the a Custom Window, with the supplied rendering
  • closeCustomWindowPopup - closes the open window (with a given Id)
Deep Dive

Configuring the Custom Window

Creating a Custom Window
Fork
  • This example contains a Custom Dashboard Button - Show Custom Window - which opens a Custom Window popup that displays the rendered content that was provided
  • The Custom Window is given an initial Size and Position but is also fully movable and resizable by the run-time user
  • The Custom Window contains a Close button for manual close, but is also set programatically to close after 10 seconds (via closeCustomWindowPopup)
Try It Out
  • Click the Button to open the Custom Window and not that while it opens in the position and with the size provided, you can move and resize it as required
  • Wait 10 seconds and note that the Window automatically closes
  • Re-open the Window and note that it assumes the same position and size that you previously set