Welcome aboard! We are happy you are here and wish you good net-raft!
<html>
<head>
<title>VueJs</title>
<script type = "text/javascript" src = "https://unpkg.com/vue@2.2.6/dist/vue.js"></script>
<script type = "text/javascript" src = "https://unpkg.com/vue-star-rating@1.7.0/dist/VueStarRating.umd.min.js"></script>
<link rel="stylesheet" href="/project/xPeterx/sl_iv7uZllK2q202122274/file.css">
</head>
<body>
<div id="app">
<h2>Star Rating</h2>
<star-rating></star-rating>
</div>
<script type = "text/javascript">
Vue.component('star-rating', VueStarRating.default)
new Vue({
el: '#app',
methods: {
setRating: function(rating) {
this.rating = "You have Selected: " + rating + " stars";
},
showCurrentRating: function(rating) {
this.currentRating = (rating === 0) ? this.currentSelectedRating : "Click to select " + rating + " stars"
},
setCurrentSelectedRating: function(rating) {
this.currentSelectedRating = "You have Selected: " + rating + " stars";
}
},
data: {
rating: "No Rating Selected",
currentRating: "No Rating",
currentSelectedRating: "No Current Rating",
boundRating: 3,
}
});
</script>
</body>
</html>
The most helpful VUE.JS solutions
get ip address using vuejsVUE.JS
Click to see more ...
10K
76
create calendar using vuejsVUE.JS
Click to see more ...
2.5K
53
get client city using vuejsVUE.JS
Click to see more ...
1.2K
41
parse json url using vuejsVUE.JS
Click to see more ...
1.1K
36
create star rating using vuejs and cssVUE.JS
Click to see more ...
2.2K
21
get country using vuejsVUE.JS
Click to see more ...
1.7K
17
get client region name using vuejsVUE.JS
Click to see more ...
1.2K
13
get client latitude longitude using vuejsVUE.JS
Click to see more ...
1K
12
create switch function vuejsVUE.JS
Click to see more ...
1.4K
11
get client timezone using vuejsVUE.JS
Click to see more ...
741
9