react-adminlte-dash icon indicating copy to clipboard operation
react-adminlte-dash copied to clipboard

toggling programmatically

Open m2jobe opened this issue 7 years ago • 1 comments

Is there a way to toggle programmatically in the event you want to place the toggle button elsewhere

m2jobe avatar Aug 18 '17 16:08 m2jobe

Sorry I took so long to get back to you. It is possible to toggle programmatically, but not using the Dashboard component. The Dashboard component is just a wrapper around the other elements. The Header component has a sidebarCollapse prop that determines the toggled state and a sidebarToggle prop that determines what action the existing toggle performs. These components could be used separately from Dashboard to create exactly what you want. See src/components/Dashboard.js to learn how those components fit together.

zksailor534 avatar Aug 24 '17 13:08 zksailor534