spoonx/sxbootstrapwizard

一个基于SxBootstrap的Twitter Bootstrap向导模块。

安装次数: 2,080

依赖: 0

建议者: 0

安全: 0

星标: 3

关注者: 4

分支: 1

开放问题: 0

语言:JavaScript

类型:模块

0.2.0 2013-11-01 10:38 UTC

This package is auto-updated.

Last update: 2024-09-22 22:51:54 UTC


README

一个Twitter Bootstrap向导。

安装

  1. 将依赖项添加到您的composer.json文件中
    "require": {
        "spoonx/sxbootstrapwizard": "0.2.*"
    }

使用方法

以下是一个简单的示例

php (视图)

<?php

// Add the assets
$this->sxbWizardAssets()->add();

// The title to show. (Automatically translated, whenever a translator is available).
$title  = 'My dialog!';

// The ID needed to reference your wizard later on
$id = 'my-wizard';

// Create a new wizard instance
$wizard = $this->sxbWizard($title, $id);

/* Add a card.
 *
 * $label       The label for the card. (Automatically translated, whenever a translator is available).
 *
 * $content     The content for the card. Allowed types are:
 *                  - ViewModel
 *                  - /path/to/view (will be resolved, and loaded using partial helper)
 *                  - string
 *
 * $cardName    The name of the card (used in the front-end)
 */
$wizard->addCard($label, $viewModel, $cardName);

echo $wizard

JavaScript

var options = {},
    wizard  = $("#my-wizard").wizard(options);

wizard.show();

问题 / 支持

如果您在使用模块时遇到问题,有一些资源可能对您有所帮助。