I’m using react. I understanding flexmonster have toolbar methods and events. And its works perfect. But i need to click nested toolbar menu item from “another component”(A). it means A component is cant control or access flexmonster. So when i inspect nested menu item it havent any click event or attribute. i dont know how flexmonster can click this menu item.
How to click?
Thank you for posting to our forum.
For the cases when there is no access to Flexmonster, we added a new feature in the 2.8.31 version. Now Flexmonster API is also available from container’s
uielement. This means that you can call the component’s methods like so:
Therefore, if you use the older version, please update the Flexmonster component. Here is our tutorial for guidance: https://www.flexmonster.com/doc/updating-to-the-latest-version/.
Our team would like to also provide some explanations about the sample code above. We used the
showCharts API call, in which you can pass the desired chart type as a parameter. Further details about this method can be found here: https://www.flexmonster.com/api/showcharts/.
Please let us know if our answer helped.
Im using react-flexmonster v2.8.31.
im confused. container prop not working in my case.
const p = document.getElementById('pivotContainerName');
const p = document.querySelector('#pivotContainerName');
// returns null
i understanding of course returns null because there is no id (container-console.png);
how do i fix it?
Thank you for providing code samples and screenshots.
It helped us to understand the situation better.
Our team has found a solution for this issue in React. Please follow the steps below.
idto the parent element of the Flexmonster container. In your case, to the
uielement.flexmonstershould be available.
Please let us know if it worked for you.
Looking forward to your response.
Haha. nice hack. Thank you very much.
This question is now closed