zhangjian180/yii2-tooltip

Bootstrap tooltip widget for Yii 2 framework

Installs: 13

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

Type:yii2-extension

dev-master 2018-08-06 07:11 UTC

This package is not auto-updated.

Last update: 2025-06-14 17:01:14 UTC


README

长文本截取显示,鼠标移入并以tooltip气泡显示所有内容,支持换行

composer require zhangjian180/yii2-tooltip:dev-master

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist zhangjian180/yii2-tooltip "dev-master"

or add

"zhangjian180/yii2-tooltip": "dev-master"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?= \zhangjian180\tooltip\Tooltip::widget([
    'placement' => 'top',
    'length' => 10,
    'content' => '长文本截取显示,鼠标移入并以tooltip气泡显示所有内容,支持换行',
]); ?>```