spoonx/sxbootstrapwizard
Composer 安装命令:
composer require spoonx/sxbootstrapwizard
包简介
A wizard module for twitter bootstrap, depending on SxBootstrap.
README 文档
README
A twitter bootstrap wizard.
Installation
- Add the dependency to your composer.json file:
"require": { "spoonx/sxbootstrapwizard": "0.2.*" }
Usage
Here's a simple example:
php (view)
<?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();
Questions / support
If you're having trouble with the module there are a couple of resources that might be of help.
- RWOverdijk at irc.freenode.net #zftalk.dev
- Issue tracker. (Please try to not submit unrelated issues).
- By mail
- The documentation (javascript) found here
统计信息
- 总下载量: 2.08k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2013-07-11