2014-11-10 4 views
0

jquery 아코디언 메뉴를 사용자 정의하려고합니다. 테스트의 경우 this page (정렬 가능한 아코디언)에 예제를 사용했습니다.jquery ui accordion 사용자 정의

페이지를로드 할 때 메뉴가 닫히지 않도록했습니다.

//jquery accordion 
      $("#accordion").accordion({ 
       collapsible: true , 
       heightStyle: "content", 
       animate: 250, 
       header: ".accordion-header" 
      }).sortable({ 
       axis: "y", 
       handle: ".accordion-header", 
       stop: function(event, ui) { 
        // IE doesn't register the blur when sorting 
        // so trigger focusout handlers to remove .ui-state-focus 
        ui.item.children(".accordion-header").triggerHandler("focusout"); 
       } 
      }); 

내가 어떻게 작업을 수행 할 수 있습니다 페이지의 하단에 만 이러한 설정이 있습니까? 옵션에서 감사

답변

1

지정 :

{ 
    ... 
    active: false, 
    collapsible: true, 
    ... 
} 

active에 대한 설명서를 참조하십시오.