Skip to content

Releases: ktsn/truncator

v1.2.0

18 Jan 11:07
3701865
Compare
Choose a tag to compare

Features

  • add restoreText method on a trancator instance (5f9e91e)

v1.1.0

03 Mar 14:53
Compare
Choose a tag to compare

New

Allow to update the text truncation by recalc() method on returned object from trancate(). This is useful if you want to adapt the resize event.

var truncator = truncate(el, text, options)
window.addEventListener('resize', function () {
  truncator.recalc()
})