Ember Truncate
This addon provides a component for truncating blocks of text.
Installation
npm install ember-truncate
Usage
To get started, place the truncate-multiline
component in one of your templates and provide a string to the text
attribute.
You can also use the block form instead of supplying the text
attribute. The block form supports nested DOM nodes.
It is recommended that you use the tilde ~
character to omit extra whitespace when using the block form.
The number of lines at which the component truncates can be changed by setting the lines
attribute. The default is 3 lines.
Other attributes are available for advanced use. See the documentation in the source code for more details.
Contributing
git clone
this repositorynpm install
bower install
Running Tests
ember test
ember test --server