moderator-toolbox-nxg-for-reddit / modules/config/dom
modules/config/dom¶
Functions¶
createConfigOpenHandlers()¶
createConfigOpenHandlers(
unManager):ConfigOpenHandlers&object
Defined in: extension/data/modules/config/dom.tsx:388
Creates the config-open handlers and shared mutable config state used across all config tabs.
Parameters¶
unManager¶
boolean
Whether the usernotes manager link should be hidden (usernotes manager disabled).
Returns¶
ConfigOpenHandlers & object
The config open handlers plus the live state object shared with tab components.
Interfaces¶
ConfigOpenHandlers¶
Defined in: extension/data/modules/config/dom.tsx:45
Handlers for opening and navigating the config overlay, returned by createConfigOpenHandlers.
Properties¶
handleConfigLinkClick¶
handleConfigLinkClick: (
element) =>void
Defined in: extension/data/modules/config/dom.tsx:49
Opens the config overlay for the subreddit stored in the clicked element’s data-subreddit attribute.
Parameters¶
element¶
Element
Returns¶
void
handleNewPage¶
handleNewPage: (
event) =>Promise<void>
Defined in: extension/data/modules/config/dom.tsx:47
Updates the context menu config link when the page changes.
Parameters¶
event¶
CustomEvent<TBPageContext>
Returns¶
Promise<void>
handleOpenConfigEvent¶
handleOpenConfigEvent: (
event) =>void
Defined in: extension/data/modules/config/dom.tsx:51
Opens the config overlay for the subreddit specified in the event detail.
Parameters¶
event¶
Event
Returns¶
void
openConfigForSubreddit¶
openConfigForSubreddit: (
subreddit) =>void
Defined in: extension/data/modules/config/dom.tsx:53
Loads the wiki config and opens the config overlay for subreddit.
Parameters¶
subreddit¶
string
Returns¶
void