Class

TagListRenderer

TagListRenderer(tagsController)

The TagListRenderer handles rendering tag lists with lazy loading for improved performance.

Constructor

# new TagListRenderer(tagsController)

Constructs a new TagListRenderer

Parameters:
Name Type Description
tagsController Object

Reference to the tags controller

View Source frontend/components/tool_panel/tag_assignment_panel/tag_list_renderer.js, line 24

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

View Source frontend/components/tool_panel/tag_assignment_panel/tag_list_renderer.js, line 123

HTML string

string

# hideTagListLoadingIndicator()

Hide loading indicator for tag list

View Source frontend/components/tool_panel/tag_assignment_panel/tag_list_renderer.js, line 383

# 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

View Source frontend/components/tool_panel/tag_assignment_panel/tag_list_renderer.js, line 247

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

View Source frontend/components/tool_panel/tag_assignment_panel/tag_list_renderer.js, line 58

Promise.<void>

# showTagListLoadingIndicator()

Show loading indicator for tag list

View Source frontend/components/tool_panel/tag_assignment_panel/tag_list_renderer.js, line 363

# updateTagCountAfterRendering(isBook)

Update tag count display in the UI

Parameters:
Name Type Default Description
isBook boolean false

Whether we're in book view

View Source frontend/components/tool_panel/tag_assignment_panel/tag_list_renderer.js, line 397

# updateVirtualContainerSize()

Updates the virtual height container size based on the number of visible tags

View Source frontend/components/tool_panel/tag_assignment_panel/tag_list_renderer.js, line 329