cancel
Showing results for 
Search instead for 
Did you mean: 

Can we customize the carousel controls available in sapui5?

Former Member
0 Kudos

Hi Guys,

I used <Carousel> control in my xml view. But, I want that carousel is autoplay when my view is loaded.

I want to do some more customization in that carousel such as movement of one item to onther.

Can we customize the carousel? If anyone has sample code that will help me alot.

Regards,

Dhiraj.

Accepted Solutions (0)

Answers (2)

Answers (2)

vijay_kumar49
Active Contributor
0 Kudos

Why not use sap.m.Carousel? It has pageChanged event with oldActivePageId and newActivePageId params.

jsbin:JS Bin - Collaborative JavaScript Debugging


and SAPUI5 Explored

saivellanki
Active Contributor
0 Kudos

Hi Dhiraj,

Set loop property of carousel to true.

API: JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.m.Carousel

Regards,

Sai Vellanki.

Former Member
0 Kudos

Hi Sai,

I want my carousel is starts atomatically, when my view is loaded ie autoplay property.

Set loop property is used to make cycling your items.

Regards,

Dhiraj.

Former Member
0 Kudos

Hi Dhiraj,

You can achieve with two methods below

1.By extending the control

2.By Calling loadPage in oninit,Then keep calling next method in setinterval method.

Regards

Naveen

karthikarjun
Active Contributor
0 Kudos

Can you please go through this working example. JS Bin - Collaborative JavaScript Debugging