moderator-toolbox-nxg-for-reddit / modules/commenttriage/dom
modules/commenttriage/dom¶
Functions¶
createCommentTriageHandlers()¶
createCommentTriageHandlers(
settings,adapter):CommentTriageHandlers
Defined in: extension/data/modules/commenttriage/dom.tsx:130
Creates the Comment Triage feature handlers: scoring, annotation, sorting, and collapse/expand.
Parameters¶
settings¶
Omit<CommentTriageSettings, "sortOnMoreChildren">
Triage settings (all except sortOnMoreChildren, which is handled in the module).
adapter¶
The platform adapter used for all DOM interactions.
Returns¶
Handlers for injection, new-things events, and more-children clicks.
Interfaces¶
CommentTriageHandlers¶
Defined in: extension/data/modules/commenttriage/dom.tsx:20
Handlers returned by createCommentTriageHandlers for wiring into the module lifecycle.
Properties¶
handleMoreChildrenClick¶
handleMoreChildrenClick: (
element) =>void
Defined in: extension/data/modules/commenttriage/dom.tsx:26
Queues a re-sort of the relevant container when a “load more” element is clicked.
Parameters¶
element¶
Element
Returns¶
void
handleNewThings¶
handleNewThings: () =>
void
Defined in: extension/data/modules/commenttriage/dom.tsx:24
Processes newly loaded comment things when TBNewThings fires, if triage has been started.
Returns¶
void
inject¶
inject: () => () =>
void
Defined in: extension/data/modules/commenttriage/dom.tsx:22
Injects the CommentTriageDrawer into the modbar and returns a cleanup function.
Returns¶
() => void