Skip to Content
author's profile photo Former Member
Former Member

footer for carosul

how to add footer for carosul which displays the imformation of that image and how to set each image scrol at a time

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Dec 09, 2015 at 02:59 AM

    Which carousel are u using . . . sap.m. or sap.ui.commons. . ??

    In sap.m.carousel you can use the aggregation pages .

    Ex.

    var oCarousel = new sap.m.Carousel({
         pages : [
                        new sap.m.Page({
                             content : new sap.m.Image({src:'Your Image1 Src'}),
                             footer : [
                                            new sap.m.Bar({
                                                 contentMiddle :[new sap.m.Title({text:'Here you can write the description of the image'})],
                                                 contentRight : [new sap.m.Button({text : 'Save'})]
                                            })
                                       ]
                        }),
                         new sap.m.Page({
                             content : new sap.m.Image({src:'Your Image2 Src'}),
                             footer : [
                                            new sap.m.Bar({
                                                 contentMiddle :[new sap.m.Title({text:'tex2t'})],
                                                 contentRight : [new sap.m.Button({text : 'Save2'})]
                                            })
                                       ]
                        })
                   ]
    })
    
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 09, 2015 at 06:56 AM

    i want code for sap.ui.commons

    how to add footer for carosul which displays the imformation of that image and how to set each image scrol at a time

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 09, 2015 at 07:07 AM

    Dear James,

    Check the code of this

    https://sapui5.hana.ondemand.com/sdk/explored.html#/sample/sap.m.sample.Carousel/preview

    and if you want to add text bellow make the bellow changes.

    <Carousel class="sapUiContentPadding" loop="true">

    <pages>

    <FlexBox direction="Column">

    <Image src="1.png" alt="Example picture of USB flash drive" />

    <Label text="Image1" />

    </FlexBox>

    <FlexBox direction="Column">

    <Image src="blue.jpg" alt="Example picture of USB flash drive" />

    <Label text="Image2" />

    </FlexBox>

    <FlexBox direction="Column">

    <Image src="{img>/products/pic3}" alt="Example picture of spotlight" />

    <Label text="Image3" />

    </FlexBox>

    <FlexBox>

    <Image src="{img>/products/screw}" alt="Example picture of screw" />

    <Label text="Image4" />

    </FlexBox>

    </pages>

    </Carousel>

    Hope this will solve solve the problem.:-)

    Regards

    Siddhartha

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.