javascript - Modify Twitter Bootstrap collapse plugin to keep accordions open -
i'm trying modify bootstrap collapse plugin allow me specify whether clicking accordion (to open) should automatically close other items in accordion (so more 1 item in accordion can open @ time)
i want create new data attribute on accordion, data-collapse-type="auto|manual"
the bootstrap jquery plugins bit advanced skill level. relevant part of need mess seems on line 52, actives.collapse('hide')
. don't want happen if 'data-collapse-type="manual"' set (omitting attribute or setting auto
should keep default behavior).
i've created jsfiddle i've been experiementing.
can me on right track this?
i have forked , updated fiddle.
just go .show function, have written comments.
Comments
Post a Comment