yii2-dotdotdot JQuery DotDotDot extension for Yii 2

yii2-dotdotdot

  1. Installation
  2. Usage

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 powerkernel/yii2-dotdotdot "*"

or add

"powerkernel/yii2-dotdotdot": "*"

to the require section of your composer.json.

Usage

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

<?=
    \powerkernel\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/
    ])
?>
2 0
1 follower
0 downloads
Yii Version: 2.0
License: BSD-2-Clause
Category: User Interface
Tags: dotdotdot
Developed by: Harry Tang
Created on: Apr 27, 2014
Last updated: 5 months ago

Related Extensions