Skip to content

Web Templates

Oleg edited this page Dec 3, 2019 · 8 revisions

Server-side rendered HTML could appear for a short time while loading the view; to eliminate this blinking you could modify the existing web templates or create the custom web templates.

You can use two approaches:

  • Hide the applet div in the Web Template wrapping it by <div style='display:none;'>

  • Deploy Light Web Templates that does not contain the server-side rendered HTML

List Applet Light Web Template

Very simple, just empty div, as it is needed to have something in the template file to avoid the error that the template is empty:

<div style='display:none;'></div>

It could be also applied to popup applets.

Form Applet Light Web Template

For now we need the form-applet-layout just to parse the HTML to identify the required controls. If you don't need the required controls, you can use the same template as for list applets.

IP16 example:

<div style='display:none;'>
  <swe:form-applet-layout></swe:form-applet-layout>
</div>

IP17+ example:

<div style='display:none;'>
  <div od-type="form-applet-layout"/>
</div>