azouaoui-med / react-pro-sidebar

React Pro Sidebar provides a set of components for creating high level and customizable side navigation
https://azouaoui-med.github.io/react-pro-sidebar/
MIT License
1.72k stars 412 forks source link

SubMenu class name required for GTM #188

Closed nazcoder closed 1 year ago

nazcoder commented 1 year ago

I have to add google tag manager in my project. I am using react-pro-sidebar older version.

Class name inside Link tag is working fine and I am able to get analytic data. BUT class name for Sub Menu is working.

Then again I upgrade to the lates version. In this version I am able to get data for the Sub Menu. But again class name for the "expand icon" is not reading the class name. Even in the latest version I had to pass separate class name for the Sub Menu text and icon.

Is there any way I can pass my custom class name for the "expand icon" and simply pass a class name for the Sub Menu?

I want there should be a class name props which should be only applicable for Sub Menu or Menu button. A separate class name props which should be apply for the Menu Item of the Sub Menu

Give more props for customization purpose

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.