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
{{ message }}
Repository navigation
How to close the Sidebar upon select of a menu item? #49
Thanks 😉
Unfortunately, you can't do that easily using an AngularJs binding or such things. However, you probably can use css classes provided by the original semantic-ui. The sidebar component can accept an optional visible class that keep it shown until you remove it.
I'm not 100% sure if it works
<sidebar class="visible">...
By using a ng-class instead of just a class you'll be able to bind this capability to a ng-click
Activity
jspdown commentedon Aug 14, 2015
Thanks 😉
Unfortunately, you can't do that easily using an AngularJs binding or such things. However, you probably can use css classes provided by the original semantic-ui. The sidebar component can accept an optional
visibleclass that keep it shown until you remove it.I'm not 100% sure if it works
By using a
ng-classinstead of just aclassyou'll be able to bind this capability to ang-clickdpdonohue commentedon Aug 14, 2015
Thanks I tried using ng-class but could not find the magic formula. This is simpler and works for me (JQuery required)
corresponding HTML: