Constructor
# new TagListRenderer(tagsController)
Constructs a new TagListRenderer
Parameters:
| Name | Type | Description |
|---|---|---|
tagsController |
Object
|
Reference to the tags controller |
Methods
# generateTagListHtml(tagList, tagStatistics) → {string}
Generate HTML for a subset of tags
Parameters:
| Name | Type | Description |
|---|---|---|
tagList |
Array
|
List of tags to render |
tagStatistics |
Object
|
Tag statistics |
HTML string
string
# hideTagListLoadingIndicator()
Hide loading indicator for tag list
# initLazyLoading()
Initialize lazy loading for tags
# async loadMoreTags(savedScrollPosition, virtualScrollRatio) → {Promise.<void>}
Load more tags as the user scrolls
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
savedScrollPosition |
number
|
null
|
null | Current scroll position to maintain |
virtualScrollRatio |
number
|
null
|
null | Ratio for calculating proper scroll position |
Promise.<void>
# async renderTags(tagList, tagStatistics, isBook) → {Promise.<void>}
Render the tags with lazy loading
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
tagList |
Array
|
The complete list of tags to render |
|
tagStatistics |
Object
|
Tag statistics |
|
isBook |
boolean
|
false | Whether we're in book view |
Promise.<void>
# showTagListLoadingIndicator()
Show loading indicator for tag list
# updateTagCountAfterRendering(isBook)
Update tag count display in the UI
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
isBook |
boolean
|
false | Whether we're in book view |
# updateVirtualContainerSize()
Updates the virtual height container size based on the number of visible tags