2013-07-15 1 views
3

나는 sencha Touch 응용 프로그램과 함께 작업하고 있습니다.
다른보기에 ext.carousel 구성 요소를 사용했습니다.
실제로, 전 및 다음 항목 카드의 일부를 회전 목마 안에 넣으려고합니다. . 다음과 같은 애플 앱 스토어 같은
, enter image description here
Apple app와 동일한 회전식보기 만들기 Sencha touch에 저장

난 내 회전 목마보기로 할 수있는 방법

사람이 저를 제안 할 수 있습니다?
또한 대체 솔루션을 사용할 수 있습니다.

어떤 도움을 주시면 감사하겠습니다.

답변

7

회전 목마에 itemLength을 설정하십시오.

Ext.create('Ext.Carousel', { 
      fullscreen: true, 
      itemLength: 250, // change value as you want 
      defaults: { 
       styleHtmlContent: true 
      }, 
      items: [ 
       { 
        html: 'red', 
        style: 'background-color:#f00;' 
       }, { 
        html: 'orange', 
        style: 'background-color:#ffb600;' 
       }, { 
        html: 'yellow', 
        style: 'background-color:#ff0;' 
       }, { 
        html: 'green', 
        style: 'background-color:#80ff4d;' 
       }, { 
        html: 'blue', 
        style: 'background-color:#009dff;' 
       } 
      ] 
     }); 
관련 문제