Custom Activity Modal Dialog
Hi,
Is it possible to show a dialog with a modal overlay while something is being processed?
Thanks,
Jerry
0
-
In case someone else is trying to implement this, not sure whether this is the best way, but it seems to work:
import {AppActivity, ShowProps} from "@geocortex/workflow/runtime/app/AppActivity";
export class MyActivity extends AppActivity {
async execute(inputs: any): Promise<void> {
const showProps: ShowProps = {
title: "Performing operation...",
container: "modal"
}
this.spin(showProps);
... business logic taking time to process ...
this.hide();
return result;
}
}
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar