function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
vignesh S 23vignesh S 23 

What is the purpose of "Body" attribute in lightning:tree tags in salesforce lightning?

What is the purpose of "Body" attribute in lightning:tree tags in salesforce lightning.
Sohan Raj GuptaSohan Raj Gupta
Hi Vignesh,

The root-level tag of every component is <aura:component>. Every component inherits the body attribute from <aura:component>.

The <aura:component> tag can contain tags, such as <aura:attribute>, <aura:registerEvent>, <aura:handler>, <aura:set>, and so on. Any free markup that is not enclosed in one of the tags allowed in a component is assumed to be part of the body and is set in the body attribute. The body attribute has type Aura.Component[]. It can be an array of one component, or an empty array, but it's always an array. In a component, use “v” to access the collection of attributes. For example, {!v.body} outputs the body of the component.

You can refer it at https://resources.docs.salesforce.com/sfdc/pdf/lightning.pdf on Page 50.

Hope this will help you. Let me know if it helped or you need any more assistance. 

Please mark this is as the solution if it solved your purpose.

Thanks,
Sohan Raj Gupta