Skip to content

v1.1.3

Compare
Choose a tag to compare
@tomickigrzegorz tomickigrzegorz released this 08 May 11:54
· 46 commits to master since this release
79fc14e

Feat

  • new props "nobutton" Diable showing the read more/less button, by default 'nobutton': false

If you have global configuration, you don't need to specify all the variables in the data-config:

<div class="element" data-config='{ "limit": 20 }'>
  Lorem ipsum dolor, sit amet consectetur adipisicing elit. Quo, deleniti?
</div>
new ShowMore('.element', {
  config: {
    type: "text",
    limit: 200,
    more: "→ read more",
    less: "← read less"
  }
});