macrowish/yii2-bootstrap-tour

Bootstrap Tour widget for Yii2

Installs: 302

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

dev-master 2016-08-19 15:37 UTC

This package is not auto-updated.

Last update: 2024-05-06 12:14:17 UTC


README

Bootstrap Tour widget for Yii2

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist macrowish/yii2-bootstrap-tour "dev-master"

or add

"macrowish/yii2-bootstrap-tour": "dev-master"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?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'
        ]
     ]); ?>