AppSuite:Wizard framework: Difference between revisions

From Open-Xchange
mNo edit summary
Line 6: Line 6:
The starting point is the "Wizard" (or "Tour") class defined in io.ox/core/tk/wizard.js. A simple example:
The starting point is the "Wizard" (or "Tour") class defined in io.ox/core/tk/wizard.js. A simple example:
<pre class="language-javascript">  
<pre class="language-javascript">  
require(['io.ox/core/tk/wizard'], function (Tour) {
require(['io.ox/core/tk/wizard'], function (Tour) {
   new Tour()
   new Tour()
Line 14: Line 13:
       .end()
       .end()
   .start();
   .start();
});
});  
 
</pre>
</pre>


=== API ===
=== API ===
Bla bla.
Bla bla.

Revision as of 12:22, 15 July 2015

Wizard/Tour framework

App Suite UI provides a simple but flexible framework to implement wizards and guided tours. The essence of both a wizard and a tour is a set of steps the end-user walks through. Usually a step is a smaller modal popup.

Simple example

The starting point is the "Wizard" (or "Tour") class defined in io.ox/core/tk/wizard.js. A simple example:

 
require(['io.ox/core/tk/wizard'], function (Tour) {
   new Tour()
   .step()
       .title('Welcome')
       .content('Lorem ipsum dolor sit amet, consetetur sadipscing elitr')
       .end()
   .start();
}); 

API

Bla bla.