This plugin allows to hide or show the menu for each story.
Example:
import UIExplorer.Plugins.MenuVisibility as MenuVisibility
main : UIExplorerProgram {} () { a | note : String }
main =
explore
{ defaultConfig | viewEnhancer = MenuVisibility.viewEnhancer }
[ storiesOf
"About"
[ ( "HideMenu", _ -> myView { hasMenu = False } ),
( "ShowMenu", _ -> myView { hasMenu = True } )
]
]
menuViewEnhancer : UIExplorer.Model a b { c | hasMenu : Basics.Bool } -> Html msg -> Html msg
This function will hide or show the menu according to what was defined for the story