PHPackages                             gromit/oc-popupbuilder-plugin - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. gromit/oc-popupbuilder-plugin

ActiveOctober-plugin[Utility &amp; Helpers](/categories/utility)

gromit/oc-popupbuilder-plugin
=============================

Controller behavior for building popups

1.1.1(2y ago)122243MITPHPPHP &gt;=7.2

Since May 21Pushed 2y ago3 watchersCompare

[ Source](https://github.com/gromitsoft/oc-popupbuilder-plugin)[ Packagist](https://packagist.org/packages/gromit/oc-popupbuilder-plugin)[ RSS](/packages/gromit-oc-popupbuilder-plugin/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (10)Used By (0)

Popups plugin
=============

[](#popups-plugin)

Plugin provides PopupController controller behavior for easy creating popups on OctoberCMS backend pages.

Creating popups
---------------

[](#creating-popups)

Add PopupController behavior to your controller.

```
use GromIT\PopupBuilder\Behaviors\PopupController;

class MyController extends Controller
{
    public $implement = [
        PopupController::class
    ];

    public $popupConfig = 'config_popup.yaml';
}
```

You can add multiple configurations.

```
public $popupConfig = [
    'popup1' => 'config_popup_1.yaml',
    'popup2' => 'config_popup_2.yaml',
];
```

For render open popup button call `popupRenderOpenBtn()` method from controller.

`popupRenderOpenBtn()` receives two optional parameters. First is a definition of popup, second is extra data for `request-data` attribute.

```
