2016-09-27 5 views

답변

1

예 : jQuery 사용 사용되는 다음과 같은 HTML과

$("#myList").scroll(function(){console.log("This is scroll");}) 

에 의해 (관련하는 것은 리스너가합니다 (ID가 같은 UL로 설정되지 않은 rootAttributes 전달 id 속성으로 식별 요소에 첨부하지만, UL의 부모 요소해야한다는 것입니다

<ul data-id="c-list" data-bind="ojComponent: {component: 'ojListView', 
          data: dataSource, 
          selectionMode: 'none', 
          rootAttributes: {id: 'myList'} }"> 
</ul>