drtsb/yii2-tag-cloud
Composer 安装命令:
composer require drtsb/yii2-tag-cloud
包简介
Tagcloud for Yii2
关键字:
README 文档
README
Yii2 extension. Tag Cloud.
Installation
The preferred way to install this extension is through composer.
To install, either run
$ php composer.phar require drtsb/yii2-tag-cloud "*"
or add
"drtsb/yii2-tag-cloud": "*"
to the require section of your composer.json file.
Usage
echo TagCloud::widget([
'beginColor' => '00089A',
'endColor' => 'A3AEFF',
'minFontSize' => 8,
'maxFontSize' => 15,
'displayWeight' => false,
'tags' => [
"MVC" => ['weight' => 2],
"PHP" => ['weight' => 9, 'url' => 'http://php.net'],
"MySQL" => ['weight' => 8, 'url' => 'http://mysql.com'],
"jQuery" => ['weight' => 6, 'url' => 'http://jquery.com'],
"SQL" => ['weight' => 9],
"C#" => ['weight' => 2)],
],
'options' => ['style' => 'word-wrap: break-word;']
]);
统计信息
- 总下载量: 160
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2020-07-26