ember-text-clipper

0.1.4 • Public • Published

ember-text-clipper

npm version Build Status Ember Observer Score

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 repository
  • cd ember-text-clipper
  • npm install
  • bower install

Running

Running Tests

  • npm test (Runs ember 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/.

License

MIT

Package Sidebar

Install

npm i ember-text-clipper

Weekly Downloads

1

Version

0.1.4

License

MIT

Last publish

Collaborators

  • vevix