wiperawa / yii2-see-more-widget
widget that cut off html content to predefined height, and display ...see more link
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
pkg:composer/wiperawa/yii2-see-more-widget
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2025-10-26 03:55:36 UTC
README
widget that cut off html content to predefined height, and display ...see more link
Installation
The preferred way to install this extension is through composer.
Either run
$ php composer.phar require wiperawa/yii2-see-more-widget "dev-master"
or add
"wiperawa/yii2-copy-to-clipboard-widget": "dev-master"
to the require section of your composer.json file.
Usage
use \wiperawa\seemore\SeeMoreWidget;
SeeMoreWidget::begin([
    'height' => 160 //height of cutoff container in pixels
    //'containerOptions' => [], //Html attributes of container
    //'btnOptions => [], //Html attributes of buttons
    //'showMoreLabel' => '...(see more)',
    //'showLessLabel' => '(less)',
    //'opened' => false //Show allready opened
    //''
]);
    ....Some HTML goes here....
    ...........................
    ...........................
SeeMoreWidget::end()