spoonx / sxbootstrapwizard
一个基于SxBootstrap的Twitter Bootstrap向导模块。
0.2.0
2013-11-01 10:38 UTC
Requires
- php: >=5.3.3
- spoonx/sxbootstrap: 2.*
- zendframework/zendframework: 2.*
Requires (Dev)
This package is auto-updated.
Last update: 2024-09-22 22:51:54 UTC
README
一个Twitter Bootstrap向导。
安装
- 将依赖项添加到您的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();
问题 / 支持
如果您在使用模块时遇到问题,有一些资源可能对您有所帮助。
- RWOverdijk at irc.freenode.net #zftalk.dev
- 问题跟踪器. (请尽量避免提交无关问题)。
- 通过邮件
- 文档(JavaScript)在此处找到