Skip to content

Add the support detection of active menu items #7

Description

@execut

I think the item can have two methods for detecting active menu items from the template:
is_active() - for detect a active item.
is_has_active_children() - for detection of what item has active children.

Usage example:

{% load multimenus %}

{% for item in items %}
<li class="list-group-item{% if item.is_active or item.is_has_active_children %} active{% endif %}">
    ...
</li>
{% endfor %}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions