Download the PHP package andcarpi/laravel-popper without Composer
On this page you can find all versions of the php package andcarpi/laravel-popper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-popper
Laravel Popper
This package provides an easy way to add tooltips in your Laravel blade views. Powered by Popper.js and Tippy.js. With this, you will not lose time getting them done. Install and use, out of the box.
Install
First things, first... Use composer to install the package:
Setup
When composer finish his job, add the Service Provider and the facade to your app.config in the config folder:
Skip this if you use Laravel 5.5 and above.
Usage
To use Popper in your view, you need to inject the assets needed!
Use @include('popper::assets')
in the views you need tooltips, right before the body closing tag.
ps: If you have a Master View, add the assets on it :)
Now, it's time to use it. To generate a simple tooltip, just use the Popper facade inside any html element.
Blade Directive
Another usage example is to use the @popper
blade directive!
Configuration
Custom Tooltip Options
You can change the Tooltip default options publishing and editing the config file.
The file will be placed inside your config folder.
Each option is self-explanatory, and you can modify the default behavior of all the tooltips you generate.
Single Tooltip Options
Each tooltip can be customized using functions. They can also be chained!
-
Enable Arrows in the tooltip
-
Modify Tooltip Placement
-
Modify Tooltip distance from the element
-
Modify Tooltip size
-
Modify Tooltip Triggers (What will make tooltip appear)
-
Modify Tooltip Show and Hide Delay
-
Modify Tooltip Theme
-
Simple Success, Danger, Warning, Info Popup Helpers
-
Enable Tooltip Interactivity
- Options Chain!
This package is powered by Pooper.js and Tippy.js
License
Laravel Popper is open-sourced software licensed under the MIT License (MIT). Please see License File for more information.
Todo
[x] Danger / Warning / Success , etc pops
[] Custom Theming