Releases: ktsn/truncator
Releases · ktsn/truncator
v1.2.0
v1.1.0
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()
})