My favorites | Sign in
Project Home Downloads Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Project Information
Members
Featured
Downloads
Links

This is a Yii framework extension for IntroJs.

IntroJs v0.4.0 is used from https://github.com/usablica/intro.js/tags.

This extension depends on jQuery.

Install

  • Place introjs in your extensions directory.

Examples

  • In a view file use introjs-yii-extension in the following way:

 <?php
 $this->widget('application.extensions.introjs.IntroJs',
 	array(
 		//'autoStart' => true,
 		'isDataSafe' => true,
 		'data' => array(
 			array(
 				'id' => 'intro1',
 				'info' => array(
 					'data-step' => 1,
 					'data-intro' => '<b>Intro 1</b>',
 				)
 			),
 			array(
 				'id' => 'intro2',
 				'info' => array(
 					'data-step' => 2,
 					'data-intro' => '<b>Intro 2</b>',
 					'data-position' => 'top',
 				)
 			),
 			array(
 				'id' => 'introStart',
 				'start' => true,
 			)
 		),
 	)
 );
 ?>
 

<h1 id="intro1">Intro 1</h1>

<h2 id="intro2">Intro 2</h2>

<button id="introStart">Start Intro</button>

Powered by Google Project Hosting