Skip to content

A vue component with winwheeljs for roulette and lucky spin. based on http://dougtesting.net/home

Notifications You must be signed in to change notification settings

cjpitch23/vue-winwheel-update

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-winwheel

a winwheel for vuejs based on http://dougtesting.net/home

published on: https://www.npmjs.com/package/vue-winwheel

Demo

Download this repository

git clone [email protected]:rebotak/vue-winwheel.git

Go to the demo folder

/vue-winwheel/demo

Then install dependencies

npm install

And run the project

npm serve

Installation

npm

$ npm install vue-winwheel

Usage

Basic

<VueWinwheel :segments="options" />
<script>
import VueWinwheel from 'vue-winwheel/vue-winwheel'

export default {
  components:{
    VueWinwheel
  },
  data(){
    return{
      options:[
					{
						textFillStyle: '#fff',
						fillStyle: '#000',
						text:'Prize 1'
					},
					{
						textFillStyle: '#000',
						fillStyle: '#fadede',
						text:'Prize 2'
					},
					{
						textFillStyle: '#fff',
						fillStyle: '#000',
						text:'Prize 3'
					},
					{
						textFillStyle: '#000',
						fillStyle: '#fadede',
						text:'Prize 4'
					},
					{
						textFillStyle: '#fff',
						fillStyle: '#000',
						text:'Prize 5'
					},
					{
						textFillStyle: '#000',
						fillStyle: '#fadede',
						text:'Prize 6'
					},
					{
						textFillStyle: '#fff',
						fillStyle: '#000',
						text:'Prize 7'
					},
					{
						textFillStyle: '#000',
						fillStyle: '#fadede',
						text:'Prize 8'
					}
				]
    }
  }
}
</script>

License

The MIT License

About

A vue component with winwheeljs for roulette and lucky spin. based on http://dougtesting.net/home

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.1%
  • Vue 6.9%