navbar toggle
Closed this issue · 3 comments
dyar74 commented
MacGyer commented
Hi @dyar74,
this is expected behavior as the widget is not making assumptions about the usage of mobile nav and/or its styling.
Just provide according settings for the SideNav toggle button:
https://github.com/MacGyer/yii2-materializecss/blob/master/src/widgets/Nav.php#L130
https://github.com/MacGyer/yii2-materializecss/blob/master/src/widgets/SideNav.php#L70
Cheers
dyar74 commented
problem not in mobile version, in base layout render mobile toggle button
MacGyer commented
I know. This I did not say.
You want the SideNav toggle button to only show in small screen sizes (mobile)?!
So add the according options (e.g. CSS class) to Nav::$sideNavToggleButtonOptions
.
See official docs: http://materializecss.com/helpers.html#hiding