Show:
  1. /**
  2. * The Carousel should work a little differently on mobile touch devices,
  3. * changing the menu contents for example.
  4. * This module will be mixed into the Carousel automatically when loaded.
  5. *
  6. * @module aui-carousel-touch
  7. */
  8. function CarouselMobileTouch() {}
  9. CarouselMobileTouch.prototype = {
  10. TPL_MENU: '<div class="carousel-menu"><menu>{items}</menu></div>'
  11. };
  12. CarouselMobileTouch.ATTRS = {
  13. /**
  14. * Position of the menu.
  15. *
  16. * @attribute nodeMenuPosition
  17. * @default 'outside'
  18. * @type String
  19. */
  20. nodeMenuPosition: {
  21. value: 'outside',
  22. validator: '_validateNodeMenuPosition'
  23. }
  24. };
  25. A.Base.mix(A.Carousel, [CarouselMobileTouch]);