UI Adjustments in HTML and TypeScript: General Information
The frontend code of an MYOB Acumatica form includes the UI definition in HTML and TypeScript. You may need to adjust the layout of the form in HTML or modify the views and fields that are available on the form in TypeScript.
Learning Objectives
In this chapter, you will learn how to do the following:
- Adjust the layout of an MYOB Acumatica form or a reusable UI definition in HTML
- Adjust the TypeScript code of an MYOB Acumatica form or a reusable UI definition
Applicable Scenarios
You adjust the layout or TypeScript code of an MYOB Acumatica form in the following cases:
- You are developing a customization project that changes the Modern UI of a predefined MYOB Acumatica form.
- You are developing a complex MYOB Acumatica form with multiple tabs and dialog boxes and want to split the frontend code of the form into smaller parts by using extensions. In the extensions, you need to connect the smaller parts to the whole form by adjusting the layout or the TypeScript code of the form.
- You are developing an MYOB Acumatica form for which the availability of particular UI elements depends on a feature. You add these elements in extensions and connect these elements to the whole form by adjusting the layout or TypeScript code of the form.
- You have developed a reusable UI definition and need to insert it into an MYOB Acumatica form while adjusting the layout or TypeScript code that is defined in the reusable UI definition. (For details about reusable UI definitions, see Reusing a UI Definition.)
UI Adjustments in HTML and TypeScript
You can adjust the layout of an MYOB Acumatica form in HTML by adding controls to the form, removing them from the form, or reodering them. You can also modify the layout based on a condition. For examples of layout adjustments, see UI Adjustments in HTML and TypeScript: HTML Examples.
In TypeScript, you may need to add new fields or view classes to the form, modify field options, and add, remove, or modify decorators of fields or view classes. For examples of these adjustments, see UI Adjustments in HTML and TypeScript: TypeScript Examples.