rohit
(Rohit N Sarpotdar)
January 13, 2010, 4:23pm
1
Greetings…
In the documentation, it says, it has multi-level menu. It shows the menu items on next line.
I am a bit confused about, does it have sliding effect on that?
For example, shown in this example.
Multi-level Menu
or no effects yet, just menu items(child items) on next line.
How to make it work like shown in above link?
Regards.
locke
(Suyfte)
January 13, 2010, 10:09pm
2
Not sure about CMenu , but the extension SMenu by spyros
is multi-level with sliding effect, look for it in the extensions
jonah
(Poppitypop)
January 13, 2010, 11:03pm
3
CMenu doesn’t have any special styling by default. You need to implant the styling to your needs
jonah
(Poppitypop)
January 13, 2010, 11:06pm
4
If you want to extend the generated html (as apposed to just implanting css/js), you can extend CMenu and override renderMenu() and/or renderMenuRecursive() methods
rohit
(Rohit N Sarpotdar)
January 14, 2010, 4:43am
5
Oh… Thanks. that helped. But one more little question!
CMenu has facility to have multi-level menu.
But provides no css/js. Why so? Wouldn’t it be nice to have that too? Or some method to provide your own implementation and attach it to CMenu.
jonah
(Poppitypop)
January 14, 2010, 1:54pm
6
We figured the user would have to change the default style most of the time anyways. We may add one later though.
If you want to have it automatically register css/js files, you could create a new method registerAssets(), and call this from run() or renderMenu().