Dismiss dropdown menu
Is there a preimplemented way to close a dropdown menu on button click?
For example, on metronic react demo 2 notification logs, I'd like to close the menu when clicking on View all. What would be the best way to do this?
Can you try to use the HTML attribute the view all links?
That worked wonderfully. Thanks!
Is there anywhere I can see all the available attributes for future reference?
At the moment we do not have a separate components doc for React version, but usage and attribute names should be the same as they are in the HTML version.
You can refer to our HTML version doc.
Thanks Lauris, got it.
Another question I had based on this, is how could one conditionally change some text based on the opened or closed state of an accordion elemenet?
You can add new styles to your component and then modify tag content depending on the accordion state.