stinger / visjs-bundle
Symfony2 Bundle 用于由 http://visjs.org 开发的动态、基于浏览器的可视化库
4.3.0
2015-06-30 13:50 UTC
Requires
- symfony/framework-bundle: >=2.1
This package is auto-updated.
Last update: 2024-09-07 07:24:22 UTC
README
vis.js Bundle for Symfony2
当前版本
vis.js v4.3.0
安装
将捆绑包添加到您的 composer.json 文件中
// composer.json { "require": { // ... "stinger/visjs-bundle": "~4.3" } }
将捆绑包添加到您的应用程序内核中
// app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Stinger\VisJsBundle\StingerVisJsBundle(), // ... ); }
使用 Composer 下载捆绑包
$ php composer.phar update stinger/visjs-bundle
安装资产
假设您的服务器公共目录名为 "web",安装公共供应商资源
$ php app/console assets:install web
可选地,使用 --symlink 属性创建资源的链接而不是复制
$ php app/console assets:install --symlink web
用法
将 css 和 js 文件添加到所需的位置
{% stylesheets filter="cssrewrite" 'bundles/stingervisjs/css/vis.min.css' %} <link rel="stylesheet" href="{{ asset_url }}" /> {% endstylesheets %} {% javascripts 'bundles/stingervisjs/js/vis.min.js' %} <script src="{{ asset_url }}" ></script> {% endjavascripts %}
许可证
请参阅包含文件的源代码以获取许可证信息