Skip to content

📣 Extension for Nette Framework, providing reusable UI components, alert types, and flash message handling.

License

Notifications You must be signed in to change notification settings

drago-ex/application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drago Application

The Drago Extension is a package built on top of the Nette Framework, designed to provide several useful components for your web applications. Below are the classes in the extension and how you can use them.

License: MIT PHP version Coding Style CodeFactor

Technology

  • PHP 8.3 or higher
  • composer

Installation

composer require drago-ex/application

Check if there is a pair signal receiver and name (default is edit).

$this->getSignal();

Is AJAX request?

Shorter method in control.

$this->isAjax();

Retrieves a form component by its name.

$form = $this['factory'];
$submitButton = $this->getFormComponent($form, 'submit');
$submitButton->setCaption('Edit');

Base template class extending Nette Template.

It is used in the bow of presenters or control

/**
 * @property-read Drago\Application\UI\ExtraTemplate $template
 */
class Presenter {}

In Latte, we will use these macros to insert into the template, which will tell us the variables and types that can be used by default in the template.

{templateType Drago\Application\UI\ExtraTemplate}
{varType Drago\Application\UI\Flashes[] $flashes}

<div n:foreach="$flashes as $flash" n:class="flash, $flash->type">{$flash->message}</div>

Flash message alert type

About

📣 Extension for Nette Framework, providing reusable UI components, alert types, and flash message handling.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages