Yii 1.1: jqueryexpander

Expand and Collapse HTML content

The Expander Plugin hides (collapses) a portion of an element's content and adds a "read more" link so that the text can be viewed by the user if he or she wishes. By default, the expanded content is followed by a "read less" link that the user can click to re-collapse it. Expanded content can also be re-collapsed after a specified period of time. The plugin consists of a single method, .expander(), with a bunch of options.


            'config'=>array('slicePoint'=>600, 'expandText'=>'read more', 'userCollapseText'=>'read less', 'preserveWords'=>false)


  • [Project page]https://github.com/kswedberg/jquery-expander

Total 1 comment

#16686 report it
Sergio_HW at 2014/03/19 08:53am

is there a way to execute an js inside an ajax request? I need to use the Widget inside a ClistView that is update by ajax request.

Leave a comment

Please to leave your comment.

Create extension