innologica/yii2-vue

Integration of Vue.JS 2 with some yii2 helpers and base components.

Installs: 236

Dependents: 0

Suggesters: 0

Security: 0

Type:yii2-extension

dev-master 2017-10-08 12:58 UTC

This package is auto-updated.

Last update: 2020-03-13 00:55:09 UTC


README

Integration of Vue.JS with some yii2 helpers and base components.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist innologica/yii2-vue "*"

or add

"innologica/yii2-vue": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?= \insight\vue\VueModal::widget(); ?>

this will include the modal component and register it in Vue. So anywhere in your vue app you can use <modal-dialog>.....</modal-dialog>. Each component has specific properties which are documented here:

Clockpicker

Provides a nice clock to select time based on https://weareoutman.github.io/clockpicker/.


you can use it with or without "v-model", if you use v-model the value is updated in your data object in Vue application