Answer the question
In order to leave comments, you need to log in
How to close a list on double click in bootstrap 4?
There is a standard list like
<div class="row">
<div class="col-4">
<div class="list-group" id="list-tab" role="tablist">
<a class="list-group-item list-group-item-action active" id="list-home-list" data-toggle="list" href="#list-home" role="tab" aria-controls="home">Home</a>
<a class="list-group-item list-group-item-action" id="list-profile-list" data-toggle="list" href="#list-profile" role="tab" aria-controls="profile">Profile</a>
</div>
</div>
<div class="col-8">
<div class="tab-content" id="nav-tabContent">
<div class="tab-pane fade show active" id="list-home" role="tabpanel" aria-labelledby="list-home-list">...</div>
<div class="tab-pane fade" id="list-profile" role="tabpanel" aria-labelledby="list-profile-list">...</div>
</div>
</div>
</div>
$('#someListItem').tab('show') // раскрывает список
$('#someListItem').tab('hidden') // попробовал так закрывать при повторном клине и не хочет работать
<div class="tab-pane fade show active"> // активный
<div class="tab-pane fade "> // не-активный
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question