Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

trmcnvn/ember-text-clipper

Repository files navigation

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

About

✂️ An Ember CLI addon for text-clipper.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •