heimrichhannot/contao-no-ui-slider-bundle
Composer 安装命令:
composer require heimrichhannot/contao-no-ui-slider-bundle
包简介
Extension for heimrichhannot/contao-filter-bundle that extends choice field with range appearance
README 文档
README
This bundle offers support for the JavaScript library noUiSlider for the Contao CMS.
Features
- Filter Bundle support
- Encore Contracts support
Setup
- Install via composer:
composer require heimrichhannot/contao-no-ui-slider-bundle. - Update Database.
Configuration
Activate NoUiSlider for a "choice filter"
- Create a choice field as usual in heimrichhannot/contao-filter-bundle.
- Activate the option "Add noUiSlider support".
Activate NoUiSlider for a "multiple range filter"
- Create 2 text filter elements which represent the two borders of the filter interval. It's important that the filter element type is text.
- Create a multiple range filter element and link the text filters created in the step before.
- Activate the option "Add noUiSlider support".
Developers
When you change the set value of the slider it matches the current value to the corresponding input field. To set the slider to its min value means that all input fields are unchecked.
In that case no change or click event is triggered. Therefore, the custom event filterAsyncSubmit is dispatched in this situation.
Use this event to initiate the async submit.
统计信息
- 总下载量: 258
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-or-later
- 更新时间: 2019-07-22