modernkernel/yii2-dotdotdot

This package is abandoned and no longer maintained. No replacement package was suggested.

JQuery DotDotDot extension for Yii 2

Installs: 3 718

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 2

Open Issues: 0

Type:yii2-extension

2.0.1 2016-07-27 07:43 UTC

This package is not auto-updated.

Last update: 2018-02-16 13:27:55 UTC


README

JQuery DotDotDot extension for Yii 2

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist modernkernel/yii2-dotdotdot "*"

or add

"modernkernel/yii2-dotdotdot": "*"

to the require section of your composer.json.

Usage

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

<?=
    \modernkernel\dotdotdot\Dotdotdot::widget([
        'tag'=>'p', // content tag
        'content'=>'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', // your full content here
        'options'=>['style'=>'height: 50px; width: 200px'], // tag options
        'clientOptions'=>[] // dotdotdot configuration options, see http://dotdotdot.frebsite.nl/
    ])
?>