0.0.1 • Published 3 years ago
@brayanv120/b-icon v0.0.1
b-card
Project setup
npm install @bloque/b-slider
Props
You need pass the options options: any[] required backgroundOptionColor: string
...
<Slider :options="['Option 1', 'Option 2]">
...
Events
To listen the value selected you need create the event and the method to manage the data, in the data the Slider component return the index of the value selected
...
<Slider @selectedOption="yourMethod" :options="['Option 1', 'Option 2]">
...
...js
yourMethod (value: number) {
...
}
0.0.1
3 years ago