chofoteddy/yii2-bootstrap-wizard

基于twitter bootstrap插件的Wizard表单 (@VinceG)

dev-master 2015-07-16 20:47 UTC

This package is not auto-updated.

Last update: 2024-09-28 17:49:15 UTC


README

基于twitter bootstrap插件的Wizard表单 (@VinceG)

通过Composer安装

第一步是安装bower库管理器

composer.phar global require "fxp/composer-asset-plugin:~1.0.0"

我们现在继续安装小部件

composer.phar require chofoteddy/yii2-bootstrap-wizard "*"

用法

<?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' => [...],
        ],
    ]
]); ?>

文档

Wizard渲染一个bootstrap JavaScript组件。

结构

公共属性

方法