Hi Nick,
Thanks for contecting Syncfusion support.
We have analyzed your requirement to close the sidebar element during initial rendering. In that case, you have to set the sidebar element type as “Push”. In that case, the sidebar is rendered in closed state. When you set type as Push in sidebar element, it will open sidebar in push mode even in mobile and desktop.
Refer the below code snippet.
<EjsSidebar Width="250px" @ref="sidebarObj" Type=SidebarType.Push>
<ChildContent>
<div style="text-align: center;" class="text-content"> Sidebar </div>
</ChildContent>
</EjsSidebar> |
To know more about the sidebar type, Refer the below link.
Please let us know, if you have any concerns.
Regards,
Sowmiya.P