2
import Ubuntu.Components 0.1
3
import Ubuntu.Components.ListItems 0.1
6
The carouel is an element which displays a header title with a flickable row of ubuntu shape thumbnails.
12
property alias header: header.text
14
// Carousel Data Model
15
property alias dataModel: carouselList.model
17
// Carousel Thumbnail size
18
property alias size: carouselList.height
20
// Signal triggered when a thumb
21
signal thumbClicked(var model)
23
height: container.height
31
height: header.height + carouselList.height
35
text: "Default Header Title"
42
orientation: Qt.Horizontal
45
// Element consists of a Picture and a text label below it.
49
width: carouselList.height - units.gu(3)
50
height: carouselThumb.height + carouselThumbDescription.height + thumbColumn.spacing
59
width: thumbContainer.width
64
width: carouselThumb.width
65
fillMode: Image.PreserveAspectFit
71
id: carouselThumbDescription
73
width: carouselThumb.width
75
elide: Text.ElideRight
76
wrapMode: Text.WordWrap
77
horizontalAlignment: Text.AlignHCenter
84
onClicked: carousel.thumbClicked(model)