presentation-carousel

3.0.7 • Public • Published

presentation-carousel

Augmented.js Next Presentation - Carousel Component

API

Table of Contents

ImageCarouselView

Extends DirectiveView

Image Carousel View - Simple scrolling image carousel
Pass an array of objects as an "images" option.
Supports the following options:

  • showCaption - Shows the caption
  • postion - starting position
  • images - image array with the following format: [{ src: "", value: "", caption: "" }]
* Note that the first image will determine the size of each "block" size the carousel will scroll with.

Parameters

  • options

Examples

const ic = new ImageCarouselView({ "images": [ { "src": "uri", "value": "xyz", "caption": "This is a cool image" }, ... ] });

changed

Is called when the carousel is changed.

Parameters

  • value String passed to the method

value

Parameters

  • value

Properties

  • value Number The value of the carousel. Also calls user overridable callback "changed"

position

Properties

  • position Number The position of the carousel.

left

moves the carousel to the left

Parameters

  • e

right

moves the carousel to the right

Parameters

  • e

render

renders the view

Returns object this

remove

removes the view

Returns object this

Package Sidebar

Install

npm i presentation-carousel

Weekly Downloads

0

Version

3.0.7

License

Apache-2.0

Unpacked Size

61.1 kB

Total Files

6

Last publish

Collaborators

  • thedocbwarren