Contents

loadingTemplate

Displays a spinner and description on the screen.

Overview

Use the loadingTemplate element to display a spinner and description of why the spinner is being displayed; for example, an interim page showing that the requested page is being loaded. A spinner is automatically presented when the page is displayed, and you can add text to tell your users what is happening. The following figure shows the basic layout for a layoutTemplate page. The theme for the loading template defaults to the system preference.

[Image]

Main Elements

The following listing shows main elements of the loadingTemplate in TVML format.

<document>
   <loadingTemplate>
      <activityIndicator>
         <title>Title</title>
      </activityIndicator>
   </loadingTemplate>
</document>

Element Descriptions

activityIndicator

Image of a spinning wheel icon.

title

The text telling the user why there is a delay.

Example

The following listing shows the TVML for a loadingTemplate example.

<document>
   <loadingTemplate>
      <activityIndicator>
         <title>Loading requested page</title>
      </activityIndicator>
   </loadingTemplate>
</document>

The following figure shows the output of the above example:

[Image]

Topics

Valid TVML Attributes

See Also

Full-Page Templates