vendredi 23 janvier 2015

Link-to helper to dynamically get class other than active

I understand that:



When the rendered link matches the current route, and the same object instance is passed into the helper, then the link is given class="active". http://ift.tt/1yaNGdJ



Can a class name other than "active" be passed to the template by the link-to helper when it match the current route?


More specifically, I would like that that the <li> tag generated by the link-to help get the class="open" when the current route match the route of the link-to helper.


tks





Aucun commentaire:

Enregistrer un commentaire