dmstr/yii2-vue-shufflejs-widget

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Yii2 Widget for Vue.js & VueShuffleJs plugin.

1.0.0-rc2 2020-04-14 16:59 UTC

This package is auto-updated.

Last update: 2021-09-29 02:23:09 UTC


README

Yii2 Widget for Vue.js with vue-shufflejs-plugin.
The widget use and require the following packages:

Installation

The preferred way to install this extension is through composer.

Either run

composer require dmstr/yii2-vue-shufflejs-widget:"^0.2"

or add

"dmstr/yii2-vue-shufflejs-widget": "^0.2"

to the require section of your composer.json file.

Usage

The following example renders the vue-shufflejs-plugin with Filter, Search and Sort.
Please check the vue-shufflejs-plugin documentation for available options supported by the plugin.

use dmstr\widgets\vueshufflejs\VueShuffle;
    
<?= VueShuffle::widget(
    [
        'options' => [
            'settings' => $settings,
            'products' => [
                'data' => $data,
                'option' => $option,
                'filter' => $filter,
            ]
        ]
    ]
);?>

License

The MIT License (MIT). Please see License File for more information.