Skip to content

Could renderPageNavMenuItem() be made public, or injectable? #297

Description

@joho1968

Looking at modifying the way the menu is created (or rather, the HTML portion of it), I see that renderPageNavMenuItem() is marked as private, thus making it hard to change the rendered output of the public method menu().

It would be nice if this was somehow made injectable or configurable, i.e. what CSS classes are added for the LI and A elements, for active/current elements, and non-active, etc.

(This becomes a real issue when using Bootstrap 5 since the active CSS class is set on the A element, rather than the LI element.)

Just a thought.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions