Download the PHP package tobya/5balloons-livewire-tooltip without Composer

On this page you can find all versions of the php package tobya/5balloons-livewire-tooltip. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package 5balloons-livewire-tooltip

Livewire Tooltip

A dynamic, easy-to-use tooltip component for Laravel Livewire, enabling developers to add interactive tooltips to their Laravel applications with minimal effort.

Features

Installation

To install the package, run the following command in your terminal:

Usage

To use the LivewireTooltip component in your Livewire views, you need to follow below steps

Install PooperJs

You can either install PopperJS via npm , or simply include the below CDN file in your layout file head element.

Include Tooltip component in your view / layout

Include the tooltip component in your view file where you want to have the dynamic tooltip implemented, or you can include it in your layout file if you intend to have tooltips across your application

Tooltip Elements

Example of a link that triggers the tooltip:

To implement the dynamic tooltip functionality, you need to define a method named tooltip in your controller. This method should return either a string or a view file that contains the content to be displayed in the tooltip.

Here's an example of how you can define the tooltip method in your controller:

Make sure to replace 'This is the tooltip content' with the actual content you want to display in the tooltip.

Once you have defined the tooltip method, you can use it in your view by adding the tooltip-method attribute to the tooltip link element, like this:

Remember to replace \App\Http\Controllers\YourController with the actual namespace and class name of your controller.

That's it! Now when the user hovers over the tooltip link, the tooltip method will be invoked and the returned content will be displayed in the tooltip.

The tooltip method can either return a String or a View file. Tooltip component should be able to parse the dynamic variables and render the content inside tooltip

Advanced Usage

For dynamic content loading and custom positioning:

You can pass parameters to the method and specify the tooltip position as given in the above example

License

This package is open-sourced software licensed under the MIT license.


All versions of 5balloons-livewire-tooltip with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
illuminate/support Version ^9.0|^10.0|^11.0
livewire/livewire Version ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package tobya/5balloons-livewire-tooltip contains the following files

Loading the files please wait ....