Note: this feature is available for development purposes only and will be officially released in v26.
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.
Follow the instructions below to get up and running.
- Install dependencies. Note that these examples assume you are in the sub-directory for the example.
$ npm install- Build the project.
$ npm run build- Start the test server in a new window.
$ npm run start- Start the Platform application.
$ npm run clientA single view with a "show popup" button, click the button to create and interact with the popup window.
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!