BTM Studio | User manual | v400-SP1 (2022-07-06) | EN | © 2012-2022 Carlo Gavazzi Controls S.p.A.
JavaScript in custom widgets .............................................................................................................................. 451
User's Gallery ...................................................................................................................................................... 454
39 Sending an email message ............................................................................................................................. 457
Configuring the email server ............................................................................................................................... 458
Configure emails .................................................................................................................................................. 458
40 JavaScript .......................................................................................................................................................... 461
JavaScript editor .................................................................................................................................................. 463
Execution of JavaScript functions........................................................................................................................ 463
Events .................................................................................................................................................................. 465
Widget events ...................................................................................................................................................... 466
Page events ......................................................................................................................................................... 468
System events ..................................................................................................................................................... 469
Objects ................................................................................................................................................................ 471
Widget class objects ............................................................................................................................................ 471
Widget properties................................................................................................................................................. 472
Widget methods ................................................................................................................................................... 475
Page object .......................................................................................................................................................... 476
Page object properties ......................................................................................................................................... 476
Page object methods ........................................................................................................................................... 477
Project object ....................................................................................................................................................... 480
Project object properties ...................................................................................................................................... 480
Project object methods ........................................................................................................................................ 481
Project object widgets .......................................................................................................................................... 490
Print reports object .............................................................................................................................................. 491
Group object ........................................................................................................................................................ 494
Group object methods ......................................................................................................................................... 494
State object .......................................................................................................................................................... 495
State object methods ........................................................................................................................................... 495
Keywords ............................................................................................................................................................. 496
Global functions ................................................................................................................................................... 497
Handling read/write files ...................................................................................................................................... 497
Sign in from JavaScript ........................................................................................................................................ 500
Limitations in working with widgets in JavaScript ................................................................................................ 503
Debugging of JavaScript ..................................................................................................................................... 503
41 Handling Gestures ............................................................................................................................................ 506