v1.1.3
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"
}
});