[mapguide-users] react sidebar: activate tab by JavaScript function

Jackie Ng jumpinjackie at gmail.com
Fri Mar 27 02:36:52 PDT 2020


dispatch the Fusion/SET_ELEMENT_STATE redux action with your desired
visibility like so.

viewer.dispatch({
    type: "Fusion/SET_ELEMENT_STATE",
    payload: {
        legendVisible: false,
        selectionPanelVisible: false,
        taskPaneVisible: true
    }
});

The dispatched action will flow state changes back into the sidebar template
which will know to show the Task Pane and hide the others.

- Jackie



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html


More information about the mapguide-users mailing list