You need to sign in to do that
Don't have an account?
Nuevo9763
As apex:pageblock is not supported in SLDS it's suggested to use slds-panel and slds-panel_section to replace page block and pageblocksection respectively. In my existing code I use rendered property of pageblock section extensively. Is it possible to apply same conditions to a div that replaces the pageblocksection? for example:
OR
<div class="slds-panel__section" rendered="{!myCondition == null}">
slds-panel Vs apex:pageblock conditional rendering
As apex:pageblock is not supported in SLDS it's suggested to use slds-panel and slds-panel_section to replace page block and pageblocksection respectively. In my existing code I use rendered property of pageblock section extensively. Is it possible to apply same conditions to a div that replaces the pageblocksection? for example:
<apex:pageBlock title="Account & Opportunity Information" rendered="{!myCondition}">Can this be replaced with
<div class="slds-panel slds-grid slds-grid--vertical slds-nowrap slds-form--compound" aria-labelledby="newaccountform" rendered="{!myCondition}">
OR
<apex:pageBlockSection title="AccountInformation" collapsible="false" columns="2" rendered="{!myCondition == null}">with
<div class="slds-panel__section" rendered="{!myCondition == null}">
<div class="slds-panel__section" rendered="{!myCondition == null}">
with this line
All Answers
with this line
thanks for quick reply. I am trying the above and it looks fineand responsive as well, ispite of the fact that I did not add any code for responsiveness.Wondering does the attribute also helped in that as well?
Now I have another thing to tackle which is a pop-up (outputpanel is used for this). The content inside the pop-up is not responsive. I guess I need to add below stying in a div and put the popup container inside that div?
I am not aware why add/remove button are not working.
you may raise a ticket to salesforce support.
in above answer, I forget to mention the use StyleClass='slds-panel slds-grid slds-grid--vertical slds-nowrap slds-form--compound' instead of class="slds-panel slds-grid slds-grid--vertical slds-nowrap slds-form--compound"
I am implementing a lightning component for a existing VF Page, I came with the doubt of how to replace pageblocksection and pageblocksectionitem in component. Can you please help me how to do this?