Skip to content

NavBar and dropDownCaret #177

@BrainFeeder

Description

@BrainFeeder

Hi!

I was using NavBar in Yii2 with dropdowns for the first time. I had to hide the caret for one (or two) dropdowns. These are buttons with only an icon as label (cog and elipsis). As I quickly searched the docs I thought I should set dropDownCaret as an empty string on each Nav item where I wanted the caret to disappear.
It took a while before I saw it had to be set on the entire Nav widget instead of only the menu item.

It could be better to allow this setting on the Nav item itself, we could than use buttons with and without caret in the same Nav.

Also, the Yii1 extension I used before had an 'icon' option together with 'label' and the other options. This seemed more obvious than injecting it in 'label' and setting 'encode' to false for each Nav item.

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