0.1.4 • Published 9 years ago
ember-text-clipper v0.1.4
ember-text-clipper
An Ember CLI addon for text-clipper. Which is a performant and HTML-safe text clipper.
Currently using my text-clipper fork.
Installation
$ ember install ember-text-clipper
Usage
{{text-clipper text}}Custom Length
Default is 200
{{text-clipper text length=60}}Disable Expand/Collapse
Default is true, canCollapse will match canExpand if not defined
{{text-clipper text canExpand=false canCollapse=false}}Custom Action text
Default is more and less
{{text-clipper text expandText="expand" collapseText="collapse"}}text-clipper options
see text-clipper documentation
{{text-clipper text options=(hash ...)}}Development
Installation
git clone <repository-url>this repositorycd ember-text-clippernpm installbower install
Running
ember serve- Visit your app at http://localhost:4200.
Running Tests
npm test(Runsember try:eachto test your addon against multiple Ember versions)ember testember test --server
Building
ember build
For more information on using ember-cli, visit http://ember-cli.com/.