-
-
Notifications
You must be signed in to change notification settings - Fork 153
/
MainView.ux
27 lines (23 loc) · 887 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
<App Background="#fff">
<JavaScript>
var Observable = require("FuseJS/Observable");
var staticRating = Observable(2);
var slidingRating = Observable(3);
staticRating.onValueChanged(module, function(x) {
console.log("staticRating changed to: " + x);
});
slidingRating.onValueChanged(module, function(x) {
console.log("slidingRating changed to: " + x);
});
module.exports = {
staticRating: staticRating,
slidingRating, slidingRating
};
</JavaScript>
<ClientPanel>
<StackPanel Alignment="Center" ItemSpacing="24">
<StaticRatingComponent Stars="5" Rating="{staticRating}" Alignment="Center" />
<SlidingRatingComponent Stars="5" Rating="{slidingRating}" Alignment="Center" />
</StackPanel>
</ClientPanel>
</App>