Class: Model

Model

new tart.components.ThumbnailedCarousel.Model()

Extends

Members

limit

Model's default limit value.

offset

Model's default offset value.

protectedproxy

remoteModelClass

WidgetModel's remoteModelClass's default value is undefined.

remoteModelClassParams

WidgetModel's RemoteModelClass's default value is undefined.

Methods

inherited dispatchEvent(modelEvent){boolean}

Overriding goog.events.EventTarget's dispatchEvent method, to make this event consistent in application

Name Type Description
modelEvent Object | string

event object which has type, oldValue and newValue fields.

Returns:
Type Description
boolean .

inherited getItems(dispatchEvent){Array}

Get carousel items

Name Type Description
dispatchEvent boolean

whether it dispatches an event.

Returns:
Type Description
Array modelItems is count of items..

inherited getTotalItemCount(){number}

Get total item count

Returns:
Type Description
number total item count for this model.
Name Type Description
callback function

load callback function.

Name Type Description
activeItem Array

Active carousel items.

inherited setItems(items)

Setter for items

Name Type Description
items Object

items to be set.

inherited setTotalItemCount(itemCount)

Set total item count

Name Type Description
itemCount number

total item count for this model.