macrowish / yii2-bootstrap-tour
Yii2 的 Bootstrap Tour 小部件
dev-master
2016-08-19 15:37 UTC
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-09-23 14:07:52 UTC
README
Yii2 的 Bootstrap Tour 小部件
安装
安装此扩展的首选方法是使用 composer。
运行以下命令之一
php composer.phar require --prefer-dist macrowish/yii2-bootstrap-tour "dev-master"
或在您的 composer.json
文件的 require 部分添加
"macrowish/yii2-bootstrap-tour": "dev-master"
to
使用
扩展安装后,只需在您的代码中通过
<?php $steps[0] = [ 'title'=>'Step 1', 'content'=>'Content and stuff', 'element'=>'#some-element' ]; // $steps[1] = ... etc \macrowish\widgets\BootstrapTour::widget([ 'steps'=>$steps, 'options'=>[ 'backdrop'=>'true' ] ]); ?>