MCPcopy
hub / github.com/element-hq/element-web / IHandle

Interface IHandle

apps/web/src/Modal.tsx:80–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 * @typeParam C - The type of the React component which forms the body of the dialog.
79 */
80export interface IHandle<C extends ComponentType> {
81 /**
82 * A promise which will resolve when the dialog closes.
83 *
84 * If the dialog body component calls the `onFinished` property, or the caller calls {@link close},
85 * the promise resolves with an array holding the arguments to that call.
86 *
87 * If the dialog is closed by clicking in the background, the promise resolves with an empty array.
88 */
89 finished: Promise<OnFinishedParams<C> | []>;
90
91 /**
92 * A function which, if called, will close the dialog.
93 *
94 * @param args - Arguments to return to {@link finished}.
95 */
96 close(this: void, ...args: OnFinishedParams<C>): void;
97}
98
99interface IOptions<C extends ComponentType> {
100 onBeforeClose?: IModal<C>["onBeforeClose"];

Callers

nothing calls this directly

Implementers 6

MockAutoCompleteapps/web/test/unit-tests/editor/mock.t
Dropdownapps/web/src/components/views/elements
EventIndexapps/web/src/indexing/EventIndex.ts
AutocompleteWrapperModelapps/web/src/editor/autocomplete.ts
JitsiCallapps/web/src/models/Call.ts
ElementCallapps/web/src/models/Call.ts

Calls

no outgoing calls

Tested by

no test coverage detected