ioMenuPlugin icon indicating copy to clipboard operation
ioMenuPlugin copied to clipboard

Make it possible to set ulClass

Open ghost opened this issue 15 years ago • 4 comments

I think it was very nice if we can set the ulClass of each item.

like this: $menu->addChild('Homepage', '@homepage'); $menu['Homepage']->ulClass('subnav')->addChild('About Us', '@about_us'); $menu['Homepage']->addChild('other_link', '#'); $menu->addChild('Blog', '@blog'); $menu['Homepage']->ulClass('blog_subnav')->addChild('Archive', '@blog_archive'); $menu['Homepage']->addChild('other_link', '#');

ghost avatar Nov 29 '10 14:11 ghost

Hey-

After my message back to you earlier, do you still think this is necessary? you should add the class to the parent li that houses the children you want to target. If you doesn't work for some reason, please show me an example.

Thanks

weaverryan avatar Nov 30 '10 01:11 weaverryan

i know is not possible but this is a request to make it possible, and above is an example what i mean, not more.

But forgot it i try another solutions.

thanks

ghost avatar Nov 30 '10 09:11 ghost

I certainly don't think it would be difficult to implement, but in general, if the library has less features then it's easier to maintain and document. I'm all for adding this, but only if it were absolutely necessary to accomplish something.

thanks

weaverryan avatar Dec 07 '10 02:12 weaverryan

Ok. I think its a must have, to have a higher configurable Menus, i port different styles and i dont like to change all the css, because i can't set it via the Menu plugin i think it was much easier to have the ability to change ul li classes, ok for li this is available.

for example the diem Menu make exactly that, but for my actual project i don't want use diem.

Your plugin does all the stuff i need but the only one with ul Classes, and your Plugin is absolute perfect. :-)

thanks too...

ghost avatar Dec 07 '10 10:12 ghost