Hi Bahar,
You can't create new Carousel items yet. You can create GenericService and there generate the required items, and then map them to the Carousel.
Here is a workaround for adding new frames in runtime. The following code adds one frame with an image:
codevar new_frame = $("<div></div");
new_frame.attr({
"id": "tester", // required!
"data-type": "image", // required!
"data-title": "tester",
"data-image-url": "http://dummyimage.com/600x400/91b8c9/15f1e6"
});
Appery( "mobilecarousel_5" ).carouselRoot.find( ".ui-carousel-items" ).append( new_frame );
Appery( "mobilecarousel_5" ).carouselRoot.carousel( "refresh" );/code
Unfortunately, the data (frame settings) should be added via attributes, not with code$.data()/code
The same is for HTML frame. Add the needed content in "new_frame".
Here is the deletion:codeAppery( "mobilecarousel_5" ).carouselRoot.carousel( "remove", index );
// or
Appery( "mobilecarousel_5" ).carouselRoot.carousel( "remove", 0, $frame_dom_element );/code