Forum Migration Notice
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
Popup dialog in AppStudio
Is there away to get popup dialogs in AppStudio? That was possible in AppMaker.

Tagged:
0
Answers
-
You can use the TComponents.Popup_A interface to implement a simple Popup component. If you're accustomed to coding with the FPComponent component, you can also directly use the FPComponents.Popup_A interface in AppStudio to write your code.
Here are some examples:
Danger:
try { // do something } catch (e) { TComponents.Popup_A.danger('Something went wrong', [e.message, e.description]); }
Error:
try { throw new Error("Whoops!"); } catch (e) { TComponents.Popup_A.error(e, 'Custom title'); };
Info:
TComponents.Popup_A.info( "Important information!", [ "For your information, this is a popup dialog.", "", "Further information can be given here!" ], function (action) { console.log("OK button was clicked") });0 -
Hi, you can build your own modal window. You can build it as documentFragment and append it to the page. Overlay and custom buttons are also possible. You can also use translation mechanism to show text in custom window according to active language. Read more about custom modal windows. And test it on the flexpendant because not all styles are working fine on the fex.0
Categories
- All Categories
- 5.7K RobotStudio
- 401 UpFeed
- 21 Tutorials
- 16 RobotApps
- 306 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 251 ScreenMaker
- 2.9K Robot Controller
- 366 IRC5
- 90 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 857 RAPID Programming
- 43 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings