Download the PHP package grizzlylab/ui-bundle without Composer
On this page you can find all versions of the php package grizzlylab/ui-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download grizzlylab/ui-bundle
More information about grizzlylab/ui-bundle
Files in grizzlylab/ui-bundle
Package ui-bundle
Short Description UI Twig helpers for Twitter Bootstrap 3
License MIT
Homepage https://github.com/grizzlylab/UIBundle
Informations about the package ui-bundle
GrizzlylabUIBundle
UI Twig helpers (alert, modal,...) for Twitter Bootstrap 3 and others. Easy way to generate redundant HTML (HTML only, not JS or CSS).
1. Installation
- in AppKernel.php:
- optionnal : Install Boostrap 3 if you will use the default configuration
2. Configuration
Basic configuration (to use defaults)
Complete default configuration
3. Use (in Twig)
Tips:
- Almost each option defined in grizzlylab_ui (config.yml) can be overridden.
- For all available options, please check UIComponentExtension.php (functions "alert", "modalTrigger" and "modal")
a) "Alert" Helper:
Examples:
Function:
Filter:
b) "Modal" and "Modal Trigger" helpers:
Examples:
Function:
Filter:
c) "truncate_to_tooltip" filter
This filter depends on the "truncate" filter from the Twig "Text" extension (http://twig.sensiolabs.org/doc/extensions/text.html) For performance reasons, you must enable Bootstrap tooltips (http://getbootstrap.com/javascript/#tooltips) Then, you can simply use the filter like this:
If you use Bootstrap 3 (default), compliant HTML will be generated (alert,modal).
License
This bundle is under the MIT license.
All versions of ui-bundle with dependencies
symfony/twig-bundle Version ^4.4|^5.2|^6.0
twig/extra-bundle Version ~3