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
pkg:composer/anisimovvb/yupe-vuejs-widget
Requires
- php: >=5.5.38
This package is not auto-updated.
Last update: 2025-12-20 05:15: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();
?>