anisimovvb/yupe-vuejs-widget

Widget for use vue in yupe

Installs: 9

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

Type:pack

dev-master 2018-06-12 21:25 UTC

This package is not auto-updated.

Last update: 2024-09-27 23:14:52 UTC


README

Install

Run

php composer.phar require anisimovvb/yupe-vuejs-widget "*"

Add to protected/config/main.php

'aliases' => [
    'vuejs' => realpath(Yii::getPathOfAlias('vendor') . '/anisimovvb/yupe-vuejs-widget/widget')
  ]

Usage

<div id="vue-app">
    <template>
        <b-alert show>Test Alert</b-alert>
    <template>
</div>


<?php $this->beginWidget(
    'vuejs.YVue',
    [
        'id' => "vue-app",
        'data' => [
            'param_name' => 'param_value',
        ],
        'methods' => [
            'func1' =>
                "function(event){
                          return false;
                    }",
        ],
    ]
);
$this->endWidget();
?>