Download the PHP package bogdik/yii2-wizardwidget without Composer
On this page you can find all versions of the php package bogdik/yii2-wizardwidget. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bogdik/yii2-wizardwidget
More information about bogdik/yii2-wizardwidget
Files in bogdik/yii2-wizardwidget
Package yii2-wizardwidget
Short Description Multi step wizard widget using tabs to guide a user through steps to complete a task. Based on the Form wizard (using tabs) from lukepzak (see http://bootsnipp.com/snippets/featured/form-wizard-using-tabs).
License MIT
Informations about the package yii2-wizardwidget
Yii2 Wizard Widget
Multi step wizard widget using tabs to guide a user through steps to complete a task. Based on the Form wizard (using tabs) from lukepzak (see http://bootsnipp.com/snippets/featured/form-wizard-using-tabs).
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your composer.json
file.
Wizard configuration
id
: string html id of the wizard widgetnoInitNext
: boolean disable event next buttonnoInitPrev
: boolean disable event prev buttonnoInitSave
: boolean disable event save buttonsteps
: array definition of the wizard steps. Array key will be used as the hyperlinks to the steps.
Each step can have the following parameters:
title
: string required title of the step (shown when hoovering over step icon)icon
: string required step icon code (see Glyphicon or Font awesome codes)content
: string required HTML content of the step pageskippable
: boolean optional allow to skip over a stepbuttons
: array optional configuration of the buttons per stepcomplete_content
: string optional the HTML content of a complete stepstart_step
: string optional the starting step when wizard is initialized
In each step four different buttons can be configured (display of a button is dependent on position of the step in the sequence):
prev
: (not shown on first step)next
: (not shown on last step)skip
: (shown when skippable is set)save
: (shown on the last step)
Each button can be configured with:
title
: string optional title as shown in the buttonoptions
: array optional of HTML options (see [Yii2 HTML helper documentation](http://www.yiiframework.com/doc-2.0/yii-helpers-basehtml.html#button()-detail))
or
html
: string optional add your own button definition with HTML code (for example to save data after a step)
Usage
Once the extension is installed, use it in your code like :