Hoppa till huvudinnehållet

Is there a way to Close a widget ? There's an Open Widget activity for web Appbuilder, how would one close a widget?

Kommentarer

1 kommentar

  • Permanently deleted user

    I had this same issue. Here is the workaround that I used:

     

    1) Add a Publish Widget Data activity to the part of the workflow which should trigger the widget close.

     

    2) Set the data input to something that is specific enough to close that widget only (e.g. ={action: "closeComments"})

     

    3) Add some code in the onReceiveData function for the widget you want to close which will close it, for example

     

    if (data.action== "closeComments"){

    PanelManager.getInstance().closePanel(__WIDGETID__);

    }

     

    0

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