blazorbootstrap icon indicating copy to clipboard operation
blazorbootstrap copied to clipboard

Sidebar collapsed by default

Open gvreddy04 opened this issue 9 months ago • 3 comments

Discussed in https://github.com/vikramlearning/blazorbootstrap/discussions/699

Originally posted by heather-timmins April 30, 2024 Hi,

Sorry if i've missed something but can you make the sidebar collapsed by default? and only toggle to open?

Thanks

image

gvreddy04 avatar Apr 30 '24 09:04 gvreddy04

Yes it would be great to have an option InitiallyCollapsed oslt. Now I invoke _sidebar.ToggleSidebar() on initialization. (OnAfterRender)...

psijkof avatar May 05 '24 11:05 psijkof

It seems this is the default in the current version and I need to go just the opposite direction. My desktop implementations are all defaulting to hide. I don't have an issue with the default the way it is, it would be nice to have a parameter to specify the initial value. Toggle assumes that we know the initial state. If you change it to default, all implementations using toggle on initialize will have to be updated.

GaryWayneSmith avatar May 16 '24 00:05 GaryWayneSmith

This would be a great to have feature. Any update on this?

LakinduK avatar Jul 08 '24 07:07 LakinduK