nattreid/modal

Modal for Nette Framework

Installs: 157

Dependents: 1

Suggesters: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

2.1.5 2019-05-03 06:30 UTC

README

Použití

Vytvoříme potomka třídy NAttreid\Modal\Modal

class MyModal extends NAttreid\Modal\Modal {
    public function render() {
        $template = $this->template;
        $template->setFile(__DIR__ . '/default.latte');
        parent::render();
    }
}

a v latte podědíme pomocí

{extends $layout}
{block content}
    html ...