Four Js Development Tools Forum

General => Ask Reuben => Topic started by: Reuben B. on April 26, 2024, 02:18:25 am



Title: Ask Reuben 220 - ui.Form.setDefaultInitializer
Post by: Reuben B. on April 26, 2024, 02:18:25 am
Good developers are fundamentally "lazy" in that they will find a smart way to code something once rather than repeating code or actions unnecessarily. 

One tool that developers use to reduce coding is ui.Form.setDefaultInitiailizer.  This is a method that defines a function that will be called every time a form is opened.  This function can then be used to do things liking adding elements to the form, adding attributes to widgets and containers,  or make changes to the form based on certain conditions.

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