antoha-p/yii2-widget-tooltip

Yii2 widget tooltip

1.0.0 2018-03-19 10:35 UTC

This package is not auto-updated.

Last update: 2024-10-02 05:02:24 UTC


README

This is the Tooltip widget for Yii2 framework. Allows you to display stylized prompts for users in the content.

Installation

The preferred way to install this extension is through composer. Check the composer.json for this extension's requirements and dependencies.

To install, either run

$ php composer.phar require antoha-p/yii2-widget-tooltip "@dev"

or add

"antoha-p/yii2-widget-tooltip": "@dev"

to the require section of your composer.json file.

Usage

use antoha\tooltip\Tooltip;

echo Tooltip::widget([
    'content' => "?",
    'title' => "This is an example of how a widget works",
    'size' => Tooltip::SIZE_LARGE
]);

License

yii2-widget-tooltip is released under the BSD 3-Clause License. See the bundled LICENSE.md for details.