Zum Hauptinhalt gehen

Custom Activity Modal Dialog

Kommentare

1 Kommentar

  • 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

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.