modernkernel/yii2-dotdotdot JQuery DotDotDot extension for Yii 2

extensiondotdotdot

yii2-dotdotdot

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/
    ])
?>

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



2.0.1 is the latest of 4 releases



BSD-3-Clause license
Stats
2 github stars & 2 github forks
0 downloads in the last day
69 downloads in the last 30 days
3644 total downloads