fri-uniza/modals
Composer 安装命令:
composer require fri-uniza/modals
包简介
The implementation of Bootstrap modals for Nette framework.
README 文档
README
List of components:
- Modal - abstract class for modal
- ConfirmModal - simple modal for confirmation
Installation
The best way to install is using Composer:
$ composer require brosland/modals
1 add ModalTrait to your base presenter and override method beforeRender
abstract class BasePresenter extends \Nette\Application\UI\Presenter { use \Brosland\Modals\ModalTrait; protected function beforeRender() { parent::beforeRender(); $this->updateModal($this); } // ...
2 add placeholder for a modal to your base layout
{snippet modal}{ifset $modal}{control $modal}{/ifset}{/snippet}
3 Copy brosland.modals.js to your directory with Javascript files (you can use Bower for this).
4 Link the file in your templates (usually in app/@layout.latte, after jQuery!).
统计信息
- 总下载量: 79
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-08