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
Sagar PatilSagar Patil 

What is the <apex:outputpanel> correspondence tag in lightning framework

Hi Developers,

What is the <apex:outputpanel> correspondence tag in lightning framework.
For ex.
<apex:outputPanel id="xxxx" styleClass="scrollClass">
 </apex:outputpanel>
Please help!!!
SandhyaSandhya (Salesforce Developers) 
Hi,

In visualforce we often use apex:outputpanel to Conditionally render a section of block of html element using  its render attributes .

Refer the below blog with example.

http://cloudyworlds.blogspot.sg/2013/09/outputpanel-usage-in-visualforce-page.html
 
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_outputPanel.htm
 
https://developer.salesforce.com/forums/?id=906F0000000fyNvIAI
 
Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
 
Best Regards
Sandhya
 
Raj VakatiRaj Vakati
Hi Sagar , 

We dnt have any prebuild outputPanel in lightning components. 
  • But you can do it with DIV and SPAN HTML tags 
  • For Conditional Rendering, you can use Aura:IF Tag
 
<aura:component>
    <aura:if isTrue="{!v.truthy}">
    True
    <aura:set attribute="else">
      False
    </aura:set>
  </aura:if> 
</aura:component>