bboks.net™

Bootstrap3 Accordion에 chevron 추가하기 본문

Web

Bootstrap3 Accordion에 chevron 추가하기

bboks.net 2014. 6. 23. 13:31

자바스크립트

function toggleChevron(e) {

    $(e.target)

        .prev('.panel-heading')

        .find("i.indicator")

        .toggleClass('glyphicon-chevron-down glyphicon-chevron-up');

}

$('#accordion').on('hidden.bs.collapse', toggleChevron);

$('#accordion').on('shown.bs.collapse', toggleChevron);


[출처] Bootstrap 3 accordion chevron icons