yii2mod / yii2-ion-slider

Easily customizable range slider with skins support.
MIT License
22 stars 13 forks source link

change the slider skin is not working #8

Closed gitrequests closed 7 years ago

gitrequests commented 7 years ago

I configure my assetmanager bundles, but asset manager load wrong css: css/ion.rangeSlider.skinNice.css

For experiment i delete all css and js from IonSliderAsset, but scripts and styles STILL LOADING!

Check, please!

ihorchepurnyi commented 7 years ago

The following configuration works for me

'assetManager' => [
            'bundles' => [
                'yii2mod\slider\IonSliderAsset' => [
                    'css' => [
                        'css/normalize.css',
                        'css/ion.rangeSlider.css',
                        'css/ion.rangeSlider.skinNice.css'
                    ]
                ],
            ],
        ],

http://awesomescreenshot.com/0356cj3m70

I tested on Yii 2.0.12 (advanced template), php 7.1, fxp/composer-asset-plugin:~1.3.1, dev-master version of this package

gitrequests commented 7 years ago

Just for test, change css/ion.rangeSlider.skinHTML5.css

ihorchepurnyi commented 7 years ago

Configuration

'yii2mod\slider\IonSliderAsset' => [
                    'css' => [
                        'css/normalize.css',
                        'css/ion.rangeSlider.css',
                        'css/ion.rangeSlider.skinHTML5.css'
                    ],
                ],

Result - http://awesomescreenshot.com/06e6cj3u30