SlickNav icon indicating copy to clipboard operation
SlickNav copied to clipboard

Option for arrows on left of menu items?

Open StevieDC opened this issue 11 years ago • 7 comments

I'd like to place a mobile dropdown menu on the left and the right of the page. Is there a way of having the sub menu arrows positioned on the left of the menu items in the right hand menu?

StevieDC avatar Jun 24 '14 23:06 StevieDC

And the menu item indentation reversed. Basically a mirrored image of the left hand menu.

StevieDC avatar Jun 24 '14 23:06 StevieDC

Any thoughts?

StevieDC avatar Jul 16 '14 09:07 StevieDC

Anyone?

StevieDC avatar Jul 28 '14 12:07 StevieDC

Wouldn't it be possible with CSS only?

RawHatred avatar Jul 28 '14 12:07 RawHatred

I expect so. I'll give it a go. I know it looks like I'm being really lazy but I was hoping that someone might have already done it.

StevieDC avatar Jul 28 '14 12:07 StevieDC

I am sorry @StevieDC I have misunderstood your question.

Although it may be possible to achieve this with CSS, I think you need to hide the dynamically generated span(arrow) inside the parents then append your own arrows(?).

The code appending the arrows: https://github.com/ComputerWolf/SlickNav/blob/master/jquery.slicknav.js#L131-L131

//append arrow
$(nodes).last().after(arrowElement);

I think using .before(arrowElement) should do the trick here but you want to change the arrows positioned on the right menu only. I don't know if it is possible to change it within a callback function. Now I would like to know if this is possible :smile:

RawHatred avatar Jul 28 '14 13:07 RawHatred

Thanks for the help but I've decided to go with one menu for mobile and therefore combine the two.

StevieDC avatar Jul 30 '14 09:07 StevieDC