@adactive/arc-carousel
Adsum Carousel Component
Last updated a year ago by clientadactive .
UNLISENCED · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @adactive/arc-carousel 
SYNC missed versions from official npm registry.

Carousel component

image

Live examples here

Getting started

    npm i --save @adactive/arc-carousel

OR

    yarn add @adactive/arc-carousel
    import AdsumCarousel from "@adactive/arc-carousel"
     ...
    <AdsumCarousel 
        isOpen=true 
        medias=[]
        onTouchToNavigate={this.onTouchToNavigate}
    />

Props

type PropsType = {|
    +isOpen: boolean,
    +medias: Array<MediaType>,
    +onMediaTouch: (MediaType) => void,
    +carouselOptions?: Object,
    +style?: CSSStyleDeclaration
|};

static defaultProps = {
    isOpen: false,
    medias: [],
    onMediaTouch: null,
    carouselOptions: {
        dragging: false,
        swiping: false,
        autoplayInterval: 10000,
        speed: 1000,
        renderCenterLeftControls: null,
        renderCenterRightControls: null,
        renderCenterBottomControls: null,
        renderBottomCenterControls: null,
        arrows: false,
        pauseOnHover: false,
        slidesToShow: 1,
        slidesToScroll: 1,
        adaptiveHeight: true,
        wrapAround: true
    }
};

isOpen -> To show or hide carousel

medias -> Array of medias to be displayed in the carousel

onMediaTouch -> A callback function to capture clicking of the media

carouselOptions -> Refer to nuka-carousel for more information. However, 2 of the following options in nuka carousel have been predefined in Adsum Carousel Component.

  • autoPlay: This option will be set to true if there is only 1 media in the carousel and false if there are multiple media.
  • afterSlide: This option will be a predefined callback function that plays a video immediately if the next media in the carousel is a video.

style -> To customise the CSS of the overall component

Copy component inside your project src folder

Less only

`npx @adactive/arc-carousel copy --less-only`

Full copy

`npx @adactive/arc-carousel copy`

Current Tags

  • 2.5.3                                ...           latest (a year ago)

143 Versions

  • 2.5.3                                ...           a year ago
  • 2.5.1                                ...           a year ago
  • 2.5.0                                ...           a year ago
  • 2.4.0                                ...           a year ago
  • 2.3.0                                ...           a year ago
  • 2.2.0                                ...           a year ago
  • 2.2.0-rc.4                                ...           a year ago
  • 2.2.0-rc.3                                ...           a year ago
  • 2.2.0-rc.2                                ...           a year ago
  • 2.2.0-rc.1                                ...           a year ago
  • 2.2.0-rc.0                                ...           a year ago
  • 2.2.0-alpha.1                                ...           a year ago
  • 2.2.0-alpha.0                                ...           a year ago
  • 2.1.0                                ...           a year ago
  • 2.1.0-rc.1                                ...           a year ago
  • 2.1.0-rc.0                                ...           a year ago
  • 2.1.0-alpha.1                                ...           a year ago
  • 2.1.0-alpha.0                                ...           a year ago
  • 2.0.0                                ...           2 years ago
  • 2.0.0-rc.0                                ...           2 years ago
  • 2.0.0-alpha.6                                ...           2 years ago
  • 2.0.0-alpha.5                                ...           2 years ago
  • 2.0.0-alpha.4                                ...           2 years ago
  • 2.0.0-alpha.3                                ...           2 years ago
  • 2.0.0-alpha.2                                ...           2 years ago
  • 2.0.0-alpha.1                                ...           2 years ago
  • 2.0.0-alpha.0                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.1.0-rc2                                ...           2 years ago
  • 1.1.0-alpha.0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 0.0.2-y.44.59                                ...           2 years ago
  • 0.0.2-y.44.58                                ...           2 years ago
  • 0.0.2-y.44.57                                ...           2 years ago
  • 0.0.2-y.44.56                                ...           2 years ago
  • 0.0.2-y.44.55                                ...           2 years ago
  • 0.0.2-y.44.54                                ...           2 years ago
  • 0.0.2-y.44.53                                ...           2 years ago
  • 0.0.2-y.44.52                                ...           2 years ago
  • 0.0.2-y.44.51                                ...           2 years ago
  • 0.0.2-y.44.50                                ...           2 years ago
  • 0.0.2-y.44.49                                ...           2 years ago
  • 0.0.2-y.44.48                                ...           2 years ago
  • 0.0.2-y.44.47                                ...           2 years ago
  • 0.0.2-y.44.46                                ...           2 years ago
  • 0.0.2-y.44.45                                ...           2 years ago
  • 0.0.2-y.44.44                                ...           2 years ago
  • 0.0.2-y.44.43                                ...           2 years ago
  • 0.0.2-y.44.42                                ...           2 years ago
  • 0.0.2-y.44.41                                ...           2 years ago
  • 0.0.2-y.44.40                                ...           2 years ago
  • 0.0.2-y.44.39                                ...           2 years ago
  • 0.0.2-y.44.37                                ...           2 years ago
  • 0.0.2-y.44.36                                ...           2 years ago
  • 0.0.2-y.44.35                                ...           2 years ago
  • 0.0.2-y.44.34                                ...           2 years ago
  • 0.0.2-y.44.33                                ...           2 years ago
  • 0.0.2-y.44.32                                ...           2 years ago
  • 0.0.2-y.44.31                                ...           2 years ago
  • 0.0.2-y.44.30                                ...           2 years ago
  • 0.0.2-y.44.29                                ...           2 years ago
  • 0.0.2-y.44.28                                ...           2 years ago
  • 0.0.2-y.44.27                                ...           2 years ago
  • 0.0.2-y.44.26                                ...           2 years ago
  • 0.0.2-y.44.25                                ...           2 years ago
  • 0.0.2-y.44.24                                ...           2 years ago
  • 0.0.2-y.44.23                                ...           2 years ago
  • 0.0.2-y.44.22                                ...           2 years ago
  • 0.0.2-y.44.21                                ...           2 years ago
  • 0.0.2-y.44.20                                ...           2 years ago
  • 0.0.2-y.44.19                                ...           2 years ago
  • 0.0.2-y.44.18                                ...           2 years ago
  • 0.0.2-y.44.17                                ...           2 years ago
  • 0.0.2-y.44.16                                ...           2 years ago
  • 0.0.2-y.44.15                                ...           2 years ago
  • 0.0.2-y.44.14                                ...           2 years ago
  • 0.0.2-y.44.13                                ...           2 years ago
  • 0.0.2-y.44.12                                ...           2 years ago
  • 0.0.2-y.44.11                                ...           2 years ago
  • 0.0.2-y.44.10                                ...           2 years ago
  • 0.0.2-y.44.9                                ...           2 years ago
  • 0.0.2-y.44.8                                ...           2 years ago
  • 0.0.2-y.44.7                                ...           2 years ago
  • 0.0.2-y.44.6                                ...           2 years ago
  • 0.0.2-y.44.5                                ...           2 years ago
  • 0.0.2-y.44.4                                ...           2 years ago
  • 0.0.2-y.44.3                                ...           2 years ago
  • 0.0.2-y.44.2                                ...           2 years ago
  • 0.0.2-y.44.1                                ...           2 years ago
  • 0.0.2-y.44.0                                ...           2 years ago
  • 0.0.2-y.43.12                                ...           2 years ago
  • 0.0.2-y.43.11                                ...           2 years ago
  • 0.0.2-y.43.10                                ...           2 years ago
  • 0.0.2-y.43.9                                ...           2 years ago
  • 0.0.2-y.43.8                                ...           2 years ago
  • 0.0.2-y.43.7                                ...           2 years ago
  • 0.0.2-y.43.6                                ...           2 years ago
  • 0.0.2-y.43.5                                ...           2 years ago
  • 0.0.2-y.43.4                                ...           2 years ago
  • 0.0.2-y.43.3                                ...           2 years ago
  • 0.0.2-y.43.2                                ...           2 years ago
  • 0.0.2-y.43.1                                ...           2 years ago
  • 0.0.2-y.43.0                                ...           2 years ago
  • 0.0.2-y.42.0                                ...           2 years ago
  • 0.0.2-y.41.0                                ...           2 years ago
  • 0.0.2-y.40.0                                ...           2 years ago
  • 0.0.2-y.39.0                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
  • 0.0.1-y.38                                ...           2 years ago
  • 0.0.1-y.37                                ...           2 years ago
  • 0.0.1-y.36                                ...           2 years ago
  • 0.0.1-y.35                                ...           2 years ago
  • 0.0.1-y.34                                ...           2 years ago
  • 0.0.1-y.33                                ...           2 years ago
  • 0.0.1-y.32                                ...           2 years ago
  • 0.0.1-y.31                                ...           2 years ago
  • 0.0.1-y.30                                ...           2 years ago
  • 0.0.1-y.29                                ...           2 years ago
  • 0.0.1-y.28                                ...           2 years ago
  • 0.0.1-y.27                                ...           2 years ago
  • 0.0.1-y.26                                ...           2 years ago
  • 1.0.0-0                                ...           2 years ago
  • 0.0.1-y.25                                ...           2 years ago
  • 0.0.1-y.24                                ...           2 years ago
  • 0.0.1-y.23                                ...           2 years ago
  • 0.0.1-y.22                                ...           2 years ago
  • 0.0.1-y.21                                ...           2 years ago
  • 0.0.1-y.20                                ...           2 years ago
  • 0.0.1-y.19                                ...           2 years ago
  • 0.0.1-y.18                                ...           2 years ago
  • 0.0.1-y.17                                ...           2 years ago
  • 0.0.1-y.16                                ...           2 years ago
  • 0.0.1-y.15                                ...           2 years ago
  • 0.0.1-y.14                                ...           2 years ago
  • 0.0.1-y.13                                ...           2 years ago
  • 0.0.1-y.12                                ...           2 years ago
  • 0.0.1-y.11                                ...           2 years ago
  • 0.0.1-y.10                                ...           2 years ago
  • 0.0.1-y.9                                ...           2 years ago
  • 0.0.1-y.8                                ...           2 years ago
  • 0.0.1-y.7                                ...           2 years ago
  • 0.0.1-y.6                                ...           2 years ago
  • 0.0.1-y.5                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 287
Last Day 0
Last Week 1
Last Month 144
Dependencies (4)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |