ember-text-clipper
v0.1.4
Published
Ember CLI addon for text-clipper.
Downloads
7
Maintainers
Readme
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-clipper
npm install
bower install
Running
ember serve
- Visit your app at http://localhost:4200.
Running Tests
npm test
(Runsember try:each
to test your addon against multiple Ember versions)ember test
ember test --server
Building
ember build
For more information on using ember-cli, visit http://ember-cli.com/.