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
Currently topbar adds/removes a expanded class if you have expanded/closed the menu. Although this is great for really trivial cases, in more complex cases you have to write a custom directive (that uses hasClass) to detect if the menu is opened, and then bind that to a variable
There should be an option for top-bar that lets you bind a variable which represents whether or not the menu has expanded, something like this
Currently topbar adds/removes a
expanded
class if you have expanded/closed the menu. Although this is great for really trivial cases, in more complex cases you have to write a custom directive (that useshasClass
) to detect if the menu is opened, and then bind that to a variableThere should be an option for
top-bar
that lets you bind a variable which represents whether or not the menu has expanded, something like thisThen
someScopeVariable
will switch betweentrue/false
whenever the menu is expanded/closed. After looking at the source, this shouldn't be too hard, it would just involve a=
bind and setting the variable in places like https://github.com/pineconellc/angular-foundation/blob/master/src/topbar/topbar.js#L195-L200The text was updated successfully, but these errors were encountered: