adlurfm/yii2-driverjs

为 Yii2 的 Driverjs.com 组件

安装: 18

依赖者: 0

建议者: 0

安全性: 0

星标: 0

关注者: 1

分支: 1

开放问题: 0

类型:yii2-extension

dev-master 2024-01-22 03:47 UTC

This package is auto-updated.

Last update: 2024-09-22 05:32:26 UTC


README

为 Yii2 的 Driverjs.com 组件

安装

安装此扩展的首选方法是使用 composer

运行以下命令之一:

php composer.phar require --prefer-dist adlurfm/yii2-driverjs "*"

或者将以下内容添加到你的 composer.json 文件的 require 部分:

"adlurfm/yii2-driverjs": "*"

使用方法

扩展安装完成后,只需在你的代码中使用它即可。

$dri = new DriverJsWidget();

$dri->addStep('.info-box',"step 1", "this is the step 1")
    ->addStep('.info-box',"step 2", "this is the step 2")
    ->addStep('.info-box',"step 3", "this is the step 3")
    ->addStep('.info-box',"step 4", "this is the step 4")
    ->addStep('.info-box',"step 5", "this is the step 5")
    ->useButton()
    ->build(false);