chofoteddy / yii2-bootstrap-wizard
Wizard form based on twitter bootstrap plugin (@VinceG)
Installs: 869
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 3
Forks: 4
Open Issues: 2
Type:yii2-extension
pkg:composer/chofoteddy/yii2-bootstrap-wizard
Requires
- php: >=5.4.0
- bower-asset/twitter-bootstrap-wizard: *
- yiisoft/yii2-bootstrap: *
Requires (Dev)
This package is not auto-updated.
Last update: 2025-10-26 00:14:20 UTC
README
Wizard form based on twitter bootstrap plugin (@VinceG)
Install via Composer
The first step is to install the library manager for bower
composer.phar global require "fxp/composer-asset-plugin:~1.0.0"
We now proceed to install the widget
composer.phar require chofoteddy/yii2-bootstrap-wizard "*"
Usage
<?php use chofoteddy\wizard\Wizard; echo Wizard::widget([ 'items' => [ // wizard step [ 'label' => 'Collapsible Group Item #1', 'content' => 'Anim pariatur cliche...', ], // another wizard step [ 'label' => 'Collapsible Group Item #1', 'content' => 'Anim pariatur cliche...', 'options' => [...], ], ] ]); ?>
Documentation
Wizard renders a wizard bootstrap javascript component.
Structure
| Clase | chofoteddy\wizard\Wizard |
|---|---|
| Inheritance | chofoteddy\wizard\Wizard » yii\bootstrap\Widget » yii\base\Widget » yii\base\Component » yii\base\Object |
Public properties
| Property | Type | Description |
|---|---|---|
| $items | array | list of groups in the wizard widget. |
| $itemOptions | array | list of HTML attributes for the item container tags. |
| $labelOptions | array | list of HTML attributes for the item container tags. |
| $linkOptions | array | list of HTML attributes for the tab header link tags. |
| $headerOptions | array | list of HTML attributes for the header container tags. |
| $navOptions | array | options to get passed to the \yii\bootstrap\Nav widget. |
| $encodeLabels | boolean | whether the labels for header items should be HTML-encoded. |
Methods
| Method | Description |
|---|---|
| init() | Initializes the widget. |
| run() | Executes the widget. |
| renderItems() | Renders wizard items as specified on [[items]]. |