Hoppa till huvudinnehållet

Custom Activity Modal Dialog

Kommentarer

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

Du måste logga in om du vill lämna en kommentar.