a5sys / overlay-bundle
Installs: 818
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 1
Open Issues: 0
Language:CSS
This package is auto-updated.
Last update: 2024-10-19 20:14:25 UTC
README
A bundle that contains a fullscreen loader
Dependency
This bundle requires:
- jquery
- jquery loader plugin
Installation
composer require a5sys/overlay-bundle
In AppKernel.php
new A5sys\OverlayBundle\OverlayBundle(),
Files to include in your template
At the beginning of your body:
{% include '@Overlay/overlay-full.html.twig' %}
The css to include:
'@OverlayBundle/Resources/public/css/overlay.css'
The js to include:
'@OverlayBundle/Resources/public/js/jquery-loading-ajax-body-overlay.js'
Use
It will display the overlay when an ajax call is done by jQuery.