{
- const context = await app.getContext();
- const contextString = JSON.stringify(context, null, 3);
- setText(contextString);
- setShowText(true);
- console.log(context);
- }}>
- Get Context
- }
- content="app.getContext()"
- />
- {showText && (
- <>
-
-
- >
- )}
+
+ {
+ const context = await app.getContext();
+ const contextString = JSON.stringify(context, null, 3);
+ setText(contextString);
+ setShowText(true);
+ console.log(context);
+ setContextClass("app-getcontext")
+ }}>
+ Get Context
+ }
+ content={"API: app.getContext() FrameContexts:content, sidePanel, settings, task, stage, meetingStage"}
+ />
+ {showText && (
+ <>
+
+
+ >
+ )}
+
+
+ {
+ const event = e as React.ChangeEvent;
+ const isValid = isValidHttpUrl(event.target.value);
+ if (!isValid) {
+ setInputVal("");
+ setErrorText("Url is not valid");
+ setShowError(true);
+ }
+ setInputVal(event.target.value);
+ if (isValid) {
+ setErrorText("");
+ setShowError(false);
+ }
+ }} />
+ {
+ await app.initialize();
+ if (app.isInitialized()) {
+ if (inputVal && inputVal !== '') {
+ app.openLink(inputVal);
+ } else {
+ setErrorText("Url is not valid");
+ setShowError(true);
+ }
+ }
+ }}>
+ App OpenLink
+ }
+ content="app.openLink()"
+ />
+ {showError &&
+
+ }
+