Releases: tomickigrzegorz/show-more
Releases · tomickigrzegorz/show-more
v1.1.8
v1.1.7
v1.1.6
Fixed
- number: true does not work for inline lists (<li>)
v1.1.5
v1.1.4
Fixed
- remove console.log
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"
}
});
v1.1.2
v1.1.1
v1.1.0
Changed
- drop IE
- add 'loose' parameter - smaller library
- new dist folder width iife, umd and esm library, also minimized files