Add ellipsify.js to your project.
- grab DOM element, for example
document.querySelector('SELECTOR_NAME')
- call
ellipsify()
on DOM element passing arguments- lines - number of lines to be visible on the screen
- maxHeight - maximum height of the container (if you want to avoid this parameter add 'inherit')
- lineHeight - line-height css rule
- It is first version of the helper (draft version)
- It only works on
div
§ion