Vue-slider-component: Set dotStyle individually [v2]

Created on 15 May 2019  路  2Comments  路  Source: NightCatSama/vue-slider-component

Describe the bug

I use to be able to style the dots individually by doing the following, in a previous version of your component :

 sliderStyle: [
                        {
                            "backgroundColor": "#ffffff",
                            "border": "1px solid #e0e0e0",
                            "boxShadow": "0.5px 0.5px 2px 1px rgba(107,107,107,.36)"
                        },
                        {
                            "backgroundColor": "#efb900",
                            "border": "1px solid #e0e0e0",
                            "boxShadow": "0.5px 0.5px 2px 1px rgba(107,107,107,.36)"
                        }
                    ],

In the latest version (as of today) it does not work, and the documentation is not clear about how to pass styles anymore. I only figured out how to style both dots at the same time like so :

dotStyle:
                        {
                            "backgroundColor": "#efb900",
                            "border": "1px solid #e0e0e0",
                            "boxShadow": "0.5px 0.5px 2px 1px rgba(107,107,107,.36)"
                        }

What am i missing ?

Environment

  • last version of vue & your component.
bug

Most helpful comment

All 2 comments

Indeed thx for the fast reply, i couldnt understand dotOptions usage.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

callumacrae picture callumacrae  路  3Comments

advancedlogic picture advancedlogic  路  7Comments

adrianolobo picture adrianolobo  路  4Comments

mayajuni picture mayajuni  路  3Comments

ThomasPoncet picture ThomasPoncet  路  5Comments