fri-uniza/modals 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 11
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-02-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固