PHPackages                             chomenko/modal - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. chomenko/modal

ActiveExtensions[Templating &amp; Views](/categories/templating)

chomenko/modal
==============

Nette Bootstrap modal

v3.0.8(5y ago)06851PHPPHP &lt;=7.1

Since Mar 4Pushed 1y agoCompare

[ Source](https://github.com/chomenko/Modal)[ Packagist](https://packagist.org/packages/chomenko/modal)[ Docs](https://github.com/chomenko/modal)[ RSS](/packages/chomenko-modal/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (6)Versions (20)Used By (1)

Bootstrap Modal
===============

[](#bootstrap-modal)

Required

- php 7.1
- [Bootstrap](https://getbootstrap.com/docs/3.3/)
- [JQuery](https://github.com/jquery/jquery)
- [chomenko/app-webloader](https://github.com/chomenko/AppWebLoader)
- [nette/application](https://github.com/nette/application)
- [nette/utils](https://github.com/nette/utils)
- [tracy/tracy](https://github.com/nette/tracy)
- [latte/latte](https://github.com/nette/latte)
- [nettpack/stage](https://github.com/nettpack/stage)

Install
-------

[](#install)

```
composer require chomenko/modal
```

Configuration
-------------

[](#configuration)

Add extension

```
extensions:
    modals: Chomenko\Modal\DI\ModalExtension
```

Add to BasePresenter.php

```
namespace App;

use Chomenko\Modal\IWrappedModal;

abstract class BasePresenter extends Presenter
	/**
	 * @var IWrappedModal @inject
	 */
	public $modalFactory;

	public function createComponentModal()
	{
		/** @var WrappedModal $wrapped */
		$wrapped = $this->modalFactory->create();
		return $wrapped;
	}
}
```

Add to layout.late

```

	{control css}

	{control modal}
	{control footerCss}
	{block scripts}
    		{control js}
    	{/block}

```

Use
---

[](#use)

Create your first modal. Create file HelloWorldModal.php podivej se na `Chomenko\Modal\ModalControl`

```
