dmstr/yii2-vue-shufflejs-widget

Yii2 Widget for Vue.js & VueShuffleJs plugin.

Installs: 5 007

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 6

Forks: 0

Open Issues: 0

Type:yii2-extension

1.0.0 2022-03-09 12:44 UTC

This package is auto-updated.

Last update: 2024-04-09 17:48:38 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.