D3vugu-components/components/navigation/sidebar.vugu

55 lines
1.1 KiB
Plaintext
Raw Normal View History

2023-05-08 18:43:07 +00:00
<div vg-attr="c.AttrMap" class="d3c-1633357633">
<div class="d3c-1633357633-sidebar" :style='fmt.Sprintf("width: %vpx;", c.Width)'>
<div>
<input:Button>
<vg-slot name="SymbolSlot"><icons:LGlobalNav></icons:LGlobalNav></vg-slot>
</input:Button>
</div>
<div>
<vg-comp expr="c.Entries"></vg-comp>
</div>
<div class="d3c-1633357633-spacer"></div>
<div>
<vg-comp expr="c.BottomEntries"></vg-comp>
</div>
</div>
<div class="d3c-1633357633-body">
<vg-comp expr="c.Body"></vg-comp>
</div>
</div>
<style>
.d3c-1633357633 {
width: 100%;
height: 100%;
position: absolute;
display: flex;
}
.d3c-1633357633-sidebar {
height: 100%;
border-right: 1px solid RGBA(0, 0, 0, 0.05);
display: flex;
flex-direction: column;
flex-shrink: 0;
}
.d3c-1633357633-spacer {
flex-grow: 1;
}
.d3c-1633357633-body {
overflow: auto;
flex-grow: 1;
flex-shrink: 1;
}
</style>
<script type="application/x-go">
import (
2023-05-08 19:14:55 +00:00
"git.d3nexus.de/Dadido3/D3vugu-components/icons"
"git.d3nexus.de/Dadido3/D3vugu-components/components/input"
2023-05-08 18:43:07 +00:00
)
</script>