UX Advanced PropertiesCreate static HTML file(s) when component is saved
Description
Configure Alpha Anywhere to automatically create a static HTML version of the UX component each time the component is saved.
Discussion
This property is useful when you want to keep static HTML output synchronized with the UX component definition without manually generating static HTML files from the UX Builder menu.
When enabled, Alpha Anywhere generates the static HTML file or files immediately after the component is saved. You can configure multiple output files and control how each static HTML file is generated.
Create Static HTML Files on Save
This property is located in the UX Component properties under the Advanced category.
When you edit and save a UX component, you can configure Alpha Anywhere to automatically create a static HTML version of the component. To do this, set the Create static HTML file(s) when component is saved property.
Static HTML Files Configuration
When you click on the smart field for this property, a dialog is shown where you can configure Alpha Anywhere to create multiple static HTML files from the component.
When you click the Add File or Edit File button, the following dialog is shown:
Settings
Each entry in the dialog represents a static HTML file definition. The <default>.html entry indicates that a static HTML file with the same name as the component should be created.
For example, if the component you are editing is called customers, the <default>.html entry will create a file named customers.html.
You can optionally specify that Alpha Anywhere should prompt for confirmation before the static HTML file is created. This can be useful because it can take some time to create static HTML output.
The Component alias used here is the same alias used in the PWA Genie properties. It is used to generate the object name for the component at runtime.
Modify HTML Option
The Modify HTML option is an advanced feature that allows you to modify the static HTML that was generated for the component before it is saved to a file. You can insert or remove HTML from the generated output.
See Also

