Skip to content

lastobelus/bootstrap-collapse-activeselector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

bootstrap-collapse-activeselector

Extends the twitter bootstrap Collapse plugin to allow specifying the selector used to find active siblings in a collapse group. This allows using collapse on a table.

Example:

%table.table.table-hover{id: "table-collapse"}
  %thead
    %tr
      %th
        Collapsibles
  %tbody
    %tr{data: {toggle: 'collapse', target: "#collapsible-i", parent: "#table-collapse", activeselector: "> tbody > tr.collapsible > td > .in"}}
      %td
        Heading i
    %tr.collapsible
      %td
        %div{id: "collapsible-ii" , class: 'collapse'}
          Body of collapsible ii
    %tr{data: {toggle: 'collapse', target: "#collapsible-ii", parent: "#table-collapse", activeselector: "> tbody > tr.collapsible > td > .in"}}
      %td
        Heading ii
    %tr.collapsible
      %td
        %div{id: "collapsible-ii" , class: 'collapse'}
          Body of collapsible ii

About

Extends the twitter bootstrap Collapse plugin to allow specifying the selector used to find active siblings in a collapse group. This allows using collapse on a table.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published