E
E
Eugene2018-03-28 09:29:09
Yii
Eugene, 2018-03-28 09:29:09

How to disable jquery-ui.css in datepicker yii2?

There is a datepicker connected to the site using yii2. Libraries and styles are immediately connected to it. How can I disable the jquery-ui.css style file?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2018-03-28
@slo_nik

Plugins can be configured via AssetManager() . Use its bundles property , through which you can configure the configuration of resources that are included in the project.
ps
Quite normal practice. Create your own css file, in which you override what you need and include in the project. And so, if you turn off styles just for the sake of the datepicker, there may be a problem somewhere in the display of other elements. After all, jquery-ui.css contains styles not only for the datepicker.

E
Eugene, 2018-03-28
@iamd503

The question is closed. Suddenly useful to someone:
in the config

'assetManager' => [
    'bundles' => [
        'yii\jui\JuiAsset' => [
            'css' => [],
        ],
    ],
],

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question