2017 © Pedro Peláez
 

library modals

The implementation of Bootstrap modals for Nette framework.

image

fri-uniza/modals

The implementation of Bootstrap modals for Nette framework.

  • Thursday, February 8, 2018
  • by hrkut
  • Repository
  • 10 Watchers
  • 0 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 47 % Grown

The README.md

Brosland / Modals

List of components: - Modal - abstract class for modal - ConfirmModal - simple modal for confirmation, (*1)

Installation

The best way to install is using Composer:, (*2)

$ composer require brosland/modals

1 add ModalTrait to your base presenter and override method beforeRender, (*3)

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, (*4)

{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)., (*5)

4 Link the file in your templates (usually in app/@layout.latte, after jQuery!)., (*6)

The Versions

08/02 2018

dev-master

9999999-dev http://bros.land

The implementation of Bootstrap modals for Nette framework.

  Sources   Download

MIT

The Requires

 

by Martin Bros

bootstrap nette brosland modals

08/02 2018

1.0

1.0.0.0 http://bros.land

The implementation of Bootstrap modals for Nette framework.

  Sources   Download

MIT

The Requires

 

by Martin Bros

bootstrap nette brosland modals