Skip to main content

Custom Activity Modal Dialog

Comments

1 comment

  • Jerry Stafurik

    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

Please sign in to leave a comment.