Shows only first 4 tags on page load If there is more than 5 tags, add +{more tags} button after last displayed tag Shows remaining tags on button click and hide the button
- Source:
Properties:
Name | Type | Description |
---|---|---|
tagsToShowInitially |
Integer | Maximum number of tags to display on page load |
tagContainerSelector |
String | Tag container class |
hiddenClass |
String | CSS hiding class |
$tagContainer |
Object | DOM reference to tag container |
tags |
Array | Array of tags in $tagContainer |
Methods
(inner) handleClick()
- Source:
Handles click on 'More tags' button
(inner) init()
- Source:
Initializes tags logic on article pages