-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Menu view helper: Can't set class on li and a elements #1
Comments
You can add the classes to the At the moment we will not add more methods to the view helper, because we will rework and simplify the whole rendering of the helpers. Originally posted by @froschdesign at zendframework/zend-navigation#76 (comment) |
@froschdesign yes I could but look https://getbootstrap.com/docs/4.0/components/navbar/#supported-content
all Originally posted by @svycka at zendframework/zend-navigation#76 (comment) |
@froschdesign when this could happen I guess not any time soon? Originally posted by @svycka at zendframework/zend-navigation#76 (comment) |
@svycka
Please keep in mind zend-navigation was developed and released before Bootstrap or Foundation had a first release.
Why are you so pessimistic? We are already working on it! (zend-expressive support first, then the rework of the view helpers) Originally posted by @froschdesign at zendframework/zend-navigation#76 (comment) |
I am not pessimistic just know that zend-* has a lot of projects and only a few people to work on them. Originally posted by @svycka at zendframework/zend-navigation#76 (comment) |
Hello. Are there any update on this ? Going through tutorial and stucked in the same trouble - still no ability to set li and a classes, have to use partial template. |
Hello Everyone is There any Update on this ? or a way ? could anyone share an example. it's 2021 still couldn't find any soluton :-( |
@Aawshirazeem
Use a partial to create a custom HTML output. |
I tried custom Html output, But with Partial I couldn't able to set class to tag. Is there any example that could help. |
@Aawshirazeem
You can add additional parameters to a partial script. See: https://docs.laminas.dev/laminas-navigation/helpers/menu/#using-additional-parameters-in-partial-view-scripts Please keep in mind this is not a support forum. For further questions, please use our forums. Add your use case and a code example and I will help you. |
when working with bootsrap4 it is not enough to set class on ul element. Maybe add methods like setULClass for li and a?
Originally posted by @svycka at zendframework/zend-navigation#76
The text was updated successfully, but these errors were encountered: