dmstr/yii2-mermaid-asset
最新稳定版本:2.0.0
Composer 安装命令:
composer require dmstr/yii2-mermaid-asset
包简介
Mermaid asset bundle for Yii 2.0 Framework
README 文档
README
Mermaid asset bundle for Yii 2.0 Framework.
Installation
composer require dmstr/yii2-mermaid-asset
NPM Asset Installation
This package requires the mermaid npm package. The npm asset must be installed manually or via foxy.
Manual installation:
npm install mermaid@^11.0.0
Via foxy: The package.json in this package defines the required npm dependency and will be automatically installed when using foxy.
Configuration
The asset bundle expects mermaid to be available at @npm/mermaid/dist/. Make sure the @npm alias points to your node_modules directory:
Yii::setAlias('@npm', '@app/node_modules');
Usage
Register the asset bundle in your view:
\dmstr\web\MermaidAsset::register($this);
Then initialize mermaid in your JavaScript:
mermaid.initialize({startOnLoad: true});
统计信息
- 总下载量: 50.75k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 2
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2017-07-10