javascript - Check dropdown status -
is there way know if dropdown showed or not?
this html
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"></a>
i want check example in event on modals.
template.filtercontainer.events({ 'show.bs.collapse' : function( event ){ var instance = template.instance(); instance.vars.set( 'type-open', true ); }, 'hide.bs.collapse' : function(){ var instance = template.instance(); instance.vars.set('type-open' , false ); } });
but how dropdown, cant figure out.
you have answer on there have 2 possible solutions this.
change events
from show.bs.collapse
show.bs.dropdown
or change html
from data-toggle="drop down"
data-toggle="collapse"
Comments
Post a Comment