Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Ask Reuben 238 - Array Methods vs Dialog Methods  (Read 627 times)
Reuben B.
Four Js
Posts: 1116


« on: August 09, 2024, 12:45:31 am »

In the list of build-in array methods and ui.Dialog methods there are similar sounding methods to insert, append,  and delete.  These include array.appendElement() and DIALOG.appendRow().
 
The common mistake is to use an array method when the array is attached to an active dialog.
 
Simple rule of thumb is that if the array is being maintained by active dialog then you should use the ui.Dialog method and not the ui.Array method.

Read more at https://4js.com/ask-reuben/ig-238/

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines