diogobd/yii2-rangefilter

Widget for Yii2 Framework

Installs: 1 802

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 2

Open Issues: 0

Type:yii2-extension

1.0.1 2019-05-09 19:28 UTC

This package is not auto-updated.

Last update: 2025-06-25 13:20:41 UTC


README

This is the jQuery RangeFilter extension for Yii 2. It encapsulates RangeFilter component in terms of Yii widgets, and thus makes using RangeFilter component in Yii applications extremely easy

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist diogobd/yii2-rangefilter "*"

or add

"diogobd/yii2-rangefilter": "*"

to the require section of your composer.json file.

How to use

echo RangeFilter::widget([
    'model' => $model,
    'attribute' => 'attachment_1',
    'options' => [
        'year' => true,
        'month' => true,
        'day' => false
    ]
]);