-
Notifications
You must be signed in to change notification settings - Fork 1
/
MainView.ux
32 lines (30 loc) · 901 Bytes
/
MainView.ux
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<App Background="#eee">
<Router ux:Name="router"/>
<ClientPanel>
<JavaScript>
exports.dismissMenu = function() {
edge.dismiss()
}
</JavaScript>
<!-- An event that opens the left edge menu -->
<UserEvent ux:Name="requestMenu"/>
<OnUserEvent EventName="requestMenu">
<Set edge.Active="menu"/>
</OnUserEvent>
<UserEvent ux:Name="dismissMenu"/>
<OnUserEvent EventName="dismissMenu" Handler="{dismissMenu}"/>
<EdgeNavigator ux:Name="edge">
<SideMenu Edge="Left" ux:Name="menu" router="router">
<ActivatingAnimation>
<BringToFront Target="edge"/>
<Change block.Visibility="Visible"/>
<Change block.Color="#0005"/>
</ActivatingAnimation>
</SideMenu>
<Panel>
<Rectangle Layer="Overlay" Visibility="Collapsed" Color="#0000" ux:Name="block"/>
<Header router="router"/>
</Panel>
</EdgeNavigator>
</ClientPanel>
</App>