Monday, August 25, 2014

Collapse PageBlockSection

Collapse PageBlockSection by default on page load:
    <apex:page>  <apex:pageBlock id="block1">      <apex:pageBlockSection id="section1" columns="2" collapsible="true" title="Title">          Example Area      </apex:pageBlockSection>      <script>          twistSection(document.getElementById('{!$Component.block1.section1}').getElementsByTagName('img')[0])      </script>    </apex:pageBlock>  </apex:page>  

Disable collapse ability:
    <apex:page>  <apex:pageBlock id="block1">      <apex:pageBlockSection id="section1" columns="2" collapsible="false" title="Title">          Example Area      </apex:pageBlockSection>  </apex:pageBlock>  </apex:page>  

No comments:

Post a Comment

Thanks for your comment