Sidebar needs to stick open in Project template

I just created a new project with the latest version, and I am very pleased to see that you have incorporated your sidebar into the project template!  It looks fantastic, and works great, but the one thing that is missing is that the SideBar won't stick open.  This is quite important for users who want to leave the sidebar open, either all the time, or for a period of time.

TIA,

Miles


3 Replies

MG Miles Gibson November 23, 2021 10:49 PM UTC

I just added a new variable called SidebarToggleFixed and then only allow the MouseOut to collapse the SideBar if a user has not forced it open with the hamburger menu. @code { SfSidebar Sidebar; public bool SidebarToggle = false; public bool SidebarToggleFixed = false; public void ToggleNavMenu() { SidebarToggle = !SidebarToggle; SidebarToggleFixed = !SidebarToggleFixed; } public async Task MouseIn(MouseEventArgs args) { var isSidebar = await JS.InvokeAsync("isSidebar", args.ClientX, args.ClientY); if (!SidebarToggle && isSidebar) { SidebarToggle = true; } } public async Task MouseOut(MouseEventArgs args) { var isSidebar = await JS.InvokeAsync("isSidebar", args.ClientX, args.ClientY); if (SidebarToggle && !isSidebar) { if(!SidebarToggleFixed) { SidebarToggle = false; } } } }


AD Abishake Dakshinamoorthy Syncfusion Team November 24, 2021 07:28 AM UTC

Hi Miles Gibson,


 
Thank you for contacting Syncfusion support and sharing suggestion. 
  
We created feedback as improvement for your requested changes and include on our upcoming Essential Studio 2021 Volume 4 release. We appreciate your patience until then. You can track below feedback link for further update for your request. 

Please let us know if you have any other assistance. 

Regards,
Abishake Dakshinamoorthy 



KG Kalirajan Ganesan Syncfusion Team December 20, 2021 05:10 AM UTC

Hi Miles Gibson,

We are glad to announce that our Essential Studio 2021 Volume 4 release v19.4.0.38 is rolled out with this changes and is available for download under the following link.

https://www.syncfusion.com/forums/171304/essential-studio-2021-volume-4-main-release-v19-4-0-38-is-available-for-download

We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.

Regards,
Kalirajan Ganesan

Loader.
Up arrow icon