Skip to content

Latest commit

 

History

History
50 lines (30 loc) · 1.48 KB

File metadata and controls

50 lines (30 loc) · 1.48 KB

How To Use Popup Window | Multiple Results

version

Note: this feature is available for development purposes only and will be officially released in v26.

How it Works

The client/src/app.ts sets up a button that when clicked will create a popup window with the ability to return multiple results to the caller by utilizing an onPopupResult callback. Once the popup is shown, clicking the different colored buttons (see client/src/popup.ts) will return a result to the caller. Notice that once the popup is dismissed (via blur) the 'dismissed' result will include a lastDispatchResult.


Get Started

Follow the instructions below to get up and running.

Set up the project

  1. Install dependencies. Note that these examples assume you are in the sub-directory for the example.
$ npm install
  1. Build the project.
$ npm run build
  1. Start the test server in a new window.
$ npm run start
  1. Start the Platform application.
$ npm run client

What you will see

A single view with a "show popup" button, click the button to create and interact with the popup window.


A note about this example

This is an example of how to use OpenFin APIs to configure OpenFin Container. Its purpose is to provide an example and suggestions. DO NOT assume that it contains production-ready code. Please use this as a guide and provide feedback. Thanks!