Skip to content

swiper 도규먼트에 대한 저의 의견 #32

@kieregh

Description

@kieregh

해당 도큐먼트에 아래와 같이 기록하셨고 저번 미팅때 요청하셨는데요...
(pagination 분리사항 포함)

$('[data-extension="swiper"]').RC_initSwiper()

본래 swiper 를 초기화하는 방식을 리뷰해보면....아래와 같습니다.

  <script>        
  var mySwiper = new Swiper ('.swiper-container', {
    // Optional parameters
    direction: 'vertical',
    loop: true,

    // If we need pagination
    pagination: '.swiper-pagination',

    // Navigation arrows
    nextButton: '.swiper-button-next',
    prevButton: '.swiper-button-prev',

    // And if we need scrollbar
    scrollbar: '.swiper-scrollbar',
  })        
  </script>

즉, 본래 특정 selector 기준으로 초기화하도록 되어 있고 pagination 정의도 별도로
세팅하도록 되어 있습니다.

swiper 는 마크업 세팅과 위와 같은 초기화 설정부분 등 적용하기가 번거로운 extension
이라고 생각합니다. 그래서 RC 에서 좀더 수월하고 심플하게 사용하도록 한 번 더 래핑을
하는 개념이라고 생각해서 현재의 방식으로 작업을 한 것입니다.

따라서, 요청하신 내용은 본래의 swiper 세팅 방법을 사용하는 것과 크게 다르지 않고
커스텀 소지가 많은 부분은 사용자의 선택으로 남겨두는 것이 낫다는 판단입니다.

이상입니다.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions