ExpandableText 0.1

Add an expandable text block on your page to make it less cluttered. The JavaScript plugin will accurately cut the text by word.



Details

Author
Vladimir Yakimenko
Current version
0.1
GitHub
magicweb/ExpandableText
Downloads
1324
Category
Interface
Tags
Report
GitHub Issues

Releases


Dependencies

  • core/1.3: *

How to use

JavaScript

window.addEvent('domready', function(){
    new ExpandableText({
        divId: "textBlock",
        height: 45,
        width: 600
    }).start();
});

Options:

* divId - Div id containing the text
* width - Width the text block
* height - Height of the text block
* more - Link label to be used in the compact mode. The default is "[more...]".
* less - Link label to be used in the expanded mode. The default is "[less]".

Discuss

A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.

Found a bug in this plugin? Please report it this repository's Github Issues.

blog comments powered by Disqus