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 220 - ui.Form.setDefaultInitializer  (Read 1356 times)
Reuben B.
Four Js
Posts: 1119


« 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/

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