-
Notifications
You must be signed in to change notification settings - Fork 1
/
MainView.ux
35 lines (32 loc) · 862 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
33
34
35
<App>
<JavaScript>
var Feedback = require("FeedbackModule");
function light(){
Feedback.Raise("Light");
}
function medium(){
Feedback.Raise("Medium");
}
function heavy(){
Feedback.Raise("Heavy");
}
function success(){
Feedback.Raise("Success");
}
function error(){
Feedback.Raise("Error");
}
function warning(){
Feedback.Raise("Warning");
}
module.exports = {light,medium,heavy,success,error,warning};
</JavaScript>
<StackPanel Width="600" Alignment="Center" ItemSpacing="30" >
<Button Text="Light Feedback" Clicked="{light}" />
<Button Text="Medium Feedback" Clicked="{medium}" />
<Button Text="Heavy Feedback" Clicked="{heavy}" />
<Button Text="Success Feedback" Clicked="{success}" />
<Button Text="Failure Feedback" Clicked="{error}" />
<Button Text="Warning Feedback" Clicked="{warning}" />
</StackPanel>
</App>