You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: