moderator-toolbox-nxg-for-reddit / modules/devtools/components/CommentUITester
modules/devtools/components/CommentUITester¶
Functions¶
CommentUITester()¶
CommentUITester(
__namedParameters):Element
Defined in: extension/data/modules/devtools/components/CommentUITester.tsx:32
Parameters¶
__namedParameters¶
Returns¶
Element
Interfaces¶
CommentUITesterProps¶
Defined in: extension/data/modules/devtools/components/CommentUITester.tsx:21
Props for the CommentUITester component.
Properties¶
fetchListing¶
fetchListing: (
url,absolute) =>Promise<any>
Defined in: extension/data/modules/devtools/components/CommentUITester.tsx:29
Fetches a Reddit JSON listing for the given path (or absolute URL when absolute is true).
Returns any because this devtools tester fetches arbitrary dev-entered URLs whose response
shape varies with the URL and the selected render mode.
Parameters¶
url¶
string
absolute¶
boolean
Returns¶
Promise<any>
onClose¶
onClose: () =>
void
Defined in: extension/data/modules/devtools/components/CommentUITester.tsx:22
Returns¶
void