Environment: Electron desktop single page app
I have a project where I would like to use two Semantic UI
sidebars schemes. Only one scheme will be visible at a time. I've seen this earlier question (
Semantic-UI: Two Sidebars Conflict, Only One at a Time? ) but it only partly answers my question.
Doing a simple test, wrapping each sidebar scheme in a div
, I've had some Semantic UI
warnings ( "Had to move sidebar. For optimal performance make sure sidebar and pusher are direct children of your body tag"). Before I go further, can anyone tell me if the structure below will work or if there is some other recommended way to go about this?
I will show/hide these "layers" based on user interaction – both layers need the Semantic sidebar feature.
<body>
<div id="LAYER-1" class="ui sidebar inverted vertical menu">
<!-- ************** Sidebar content ************* !-->
</div>
<div class="pusher">
<!-- ************** Layer content ************* !-->
</div>
<div id="LAYER-2" class="ui sidebar inverted vertical menu">
<!-- ************** Sidebar content ************* !-->
</div>
<div class="pusher">
<!-- ************** Layer content ************* !-->
</div>
</body>