You need to sign in to do that
Don't have an account?
yogesh.rankawat
How to collapse & expand salesforce Collapsible Sidebar ?
Hello
How to collapse & expand salesforce Collapsible Sidebar in visual foce using coding ?
Thanks
Yogesh
How to collapse & expand salesforce Collapsible Sidebar in visual foce using coding ?
Thanks
Yogesh
Specify like this in page.
But I want to collapse & expand the sidebar.... means I want a sidebar with collapse mode
i don't think you can cause it to expand / collapse from visualforce without resorting to trickery
we can collapse & expand the sidebar using .....
<script type="text/javascript">
// ---- collapse sidebar --------
if (document.getElementById('sidebarDiv')){
Sidebar.prototype.theSidebar = new Sidebar(document.getElementById('sidebarDiv'), true, false);
}
</script>
I also used setTimeout() since I put this on the document "DOMContentLoaded" event of the home page component. Trying to put the event listener on window.parent's DOMContentLoaded wasn't working.