Class: CircularCarousel

CircularCarousel

new tart.CircularCarousel(items)

Pagination class to handle all paging events

Name Type Description
items Array.<*> optional

array of items.

Extends

Members

statictart.CircularCarousel.SpecRunner

Run jasmine spec

protectedfirstVisible

First visible item index in viewport

protecteditemCount

protecteditemPerViewport

protecteditems

protectedlastVisible

Last visible item index in viewport

Methods

inherited getItemPerViewport(){number}

Get number of visible items in viewport

Returns:
Type Description
number number of visible items.

getItemsToBeInsertedAndRemoved(moveCount){Object}

Find which items to be removed and inserted after move

Name Type Description
moveCount number

item move count.

Returns:
Type Description
Object object literal which has itemsToBeInserted and itemsToBeRemoved nodes.

inherited protectedgetMoveDiff(a1, a2, moveCount){Object}

Get difference between visible items, after move and before move

Name Type Description
a1 Array.<number>

first array.

a2 Array.<number>

second array.

moveCount number

item move count.

Returns:
Type Description
Object generated diff.

inherited getVisibleItemIndexes(){Object}

Get visible items indexes

Returns:
Type Description
Object visible items array.

inherited getVisibleItems(){Array.<*>}

Get visible items

Returns:
Type Description
Array.<*> visible items array.

inherited protectedmove(direction, moveCount)

Move cursor to next or previous item

Name Type Description
direction string

'next' or 'prev' movement direction.

moveCount *

cursor move count.

Move cursor to next

Name Type Description
moveCount number | *

cursor move count.

Move cursor to previous

Name Type Description
moveCount number | *

cursor move count.

inherited setItemPerViewport(itemPerViewport){tart.Carousel}

Item per visible viewport

Name Type Description
itemPerViewport number

number of visible items.

Returns:
Type Description
tart.Carousel itself for chaining.