moderator-toolbox-nxg-for-reddit / modules/modbar/dom
modules/modbar/dom¶
Functions¶
createModbarHandlers()¶
createModbarHandlers(
s,setSetting,onModbarMount):Promise<{dispose: () =>void; }>
Defined in: extension/data/modules/modbar/dom.tsx:18
Fetches all data needed by the modbar, then mounts the ModBar component into the page body.
Parameters¶
s¶
The resolved modbar settings.
setSetting¶
(key, value) => void
Callback to persist setting changes back through the module system.
onModbarMount¶
() => void
Called once after the bar first renders (resolves the modbarExists promise).
Returns¶
Promise<{ dispose: () => void; }>
An object with a dispose function that unmounts the bar.