Skip to content

Latest commit

 

History

History
69 lines (46 loc) · 1.9 KB

File metadata and controls

69 lines (46 loc) · 1.9 KB

List Group

It's a fancy list motherfucker

<ul class="list-group">
  <li class="list-group-item">
    <span class="badge badge-primary"></span> Cras justo odio
  </li>
  <li class="list-group-item">Dapibus ac facilisis in</li>
  <li class="list-group-item">Morbi leo risus</li>
</ul>

To allow hover effects add list-group-interactive to list-group classes

To allow toggling, add list-group-toggle to list-group classes

.list-group-toggle helpers

.list-group-toggle-multiple

Allows multiple active butt butts.

If you want one of the butts reset the active class, add the class .list-group-toggle-reset to it

If you want to allow the group to have no active bitches add .list-group-toggle-allow-no-active to the group

<ul
  class="list-group list-group-toggle list-group-toggle-multiple  list-group-toggle-allow-no-active "
>
  <li class="list-group-item list-group-toggle-reset">All</li>
  <li class="list-group-item">
    <span class="badge badge-primary"></span> Cras justo odio
  </li>
  <li class="list-group-item">Dapibus ac facilisis in</li>
  <li class="list-group-item">Morbi leo risus</li>
</ul>

Javascript

it has some but just for the functionality of toggling dem in a .list-group-toggle

Functions

fw.ListGroup(element)

Make a new boi by going const listGroup = new fw.ListGroup(element)

useful when you need to close tthis listGroup

listGroup.toggle(element)

toggles the listGroup

element is the element triggered. if left blank, this defaults to the element attached to the instance

Events

  • click_fw_listGroup - happens on the element
  • before_toggle_fw_listGroup - happens on element before toggle
  • toggle_fw_listGroup - happens on element when toggle
  • after_toggle_fw_listGroup - happens on element after toggle

Back to TOC