dmstr / yii2-vue-shufflejs-widget
Yii2 Widget for Vue.js & VueShuffleJs plugin.
Installs: 5 717
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 6
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- dmstr-forks/prawee-yii2-vuejs: ^0.1.2
- npm-asset/dmstr--vue-shufflejs-plugin: ^0.5.0
- yiisoft/yii2: *
README
Yii2 Widget for Vue.js with vue-shufflejs-plugin.
The widget use and require the following packages:
- Vue.js - The Progressive JavaScript Framework
- vue-shufflejs-plugin - A Vue.js plugin for Shuffle.js library
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.