How to make category tree show only parent? #9683
-
Hi guys, I want to make my category tree by default show only the root parent level and close all the child levels I want to make it like this, the tree is closed What should I modify? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hello, Currently there is no way, but we can provide the feature for collapse all and expand all. Currently you can overide the behavior. |
Beta Was this translation helpful? Give feedback.
-
I have opened an issue and thanks for reporting this. |
Beta Was this translation helpful? Give feedback.
-
For a quick fix you can change here, Just remove the 'active' class for here. Rest it will handle automatically. |
Beta Was this translation helpful? Give feedback.
For a quick fix you can change here,
https://github.com/bagisto/bagisto/blob/master/packages/Webkul/Admin/src/Resources/views/components/tree/view.blade.php#L203
Just remove the 'active' class for here. Rest it will handle automatically.