ak868308 / yii2-anno
为强大的Web应用提供更详细的分步指南
dev-master
2018-09-16 06:11 UTC
Requires
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2024-09-16 19:13:40 UTC
README
为强大的Web应用提供更详细的分步指南
安装
安装此扩展的首选方式是通过 composer。
运行以下命令:
php composer.phar require --prefer-dist ak868308/yii2-anno "*"
或者将以下内容添加到您的 composer.json
文件的 require 部分:
"ak868308/yii2-anno": "*"
使用
扩展安装后,只需在您的代码中使用即可:
<?= \ak868308\anno\Anno::widget([ 'var' => 'anno1', 'triggerOnLoad' => TRUE, 'oneTime' => TRUE, 'pluginOptions' => [ [ 'target' => '#element1', 'content' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s', 'position' => 'left', 'className' => 'anno-width-200', // 150,175,200,250 (default 300) 'buttons' => [ak868308\anno\Anno::NEXT_BUTTON] ], [ 'target' => '#element2', 'content' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s', 'position' => 'left' ], ] ]); ?>```