Vue-Tree-Navigation icon indicating copy to clipboard operation
Vue-Tree-Navigation copied to clipboard

Allow for a link to be cloned in to the child tree

Open cizza opened this issue 5 years ago • 1 comments

Hello,

thank you for the great plugin.

I have one feature request and that is to allow for a link to become disabled and cloned into the child tree.

What I mean by this is a situation, when the vue-tree-navigation is used as a navigation on mobile devices. How do you open a child tree of a link, which is actually a link itself? On desktop that's not a problem but on mobiles, as soon as you click on the link to open the child tree, a page belonging to the link will load.

I don't think that's desirable. What I suggest is a prop or a setting, which will mark that "parent" link to be disabled (and becomes a toggler) and cloned in to the child tree. So when you actually click on it, the child tree will open and the "parent" link will sit on top acting as a normal link.

Thanks

cizza avatar Apr 05 '19 16:04 cizza

Hi @cizza, I'm sorry for the late reply, I've been busy lately. Thank you for your suggestion- sounds useful to me, too!

MisRob avatar Apr 20 '19 06:04 MisRob