Newer Version Available

This content describes an older version of this product. View Latest

Framework-Specific Types

Here are the supported type values that are specific to the framework.

type Example Description
Aura.Component N/A A single component. We recommend using Aura.Component[] instead.
Aura.Component[] <aura:attribute name="detail" type="Aura.Component[]"/>

To set a default value for type="Aura.Component[]", put the default markup in the body of aura:attribute. For example:

1swfobject.registerObject("clippy.codeblock-0", "9");
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17<aura:component>
18    <aura:attribute name="detail" type="Aura.Component[]">
19    <p>default paragraph1</p>
20    </aura:attribute>
21    Default value is: {!v.detail}
22</aura:component>
Use this type to set blocks of markup. An attribute of type Aura.Component[] is called a facet.