Application Content
Content sections allow developers to define the content to be loaded for the
different views of a gadget. As described in Chapter 1, most containers
include different views, such as a small or large view, and Content sections are where those views are
defined.
Content sections have several
attributes available to them, all of which are optional (Table 3-8).
Table 3-8. Content attributes
Attribute | Description |
|---|---|
| A destination URL for the content to be loaded. This is a proxied content-loading approach to defining your gadget sections. |
| The initial height of the gadget in pixels. |
| The initial width of the gadget in pixels. |
| The type of content to be loaded. The values can be either
|
| The view for which the content is to be loaded. Containers may
offer multiple views, which can be defined through these |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access