org.chenillekit.tapestry.core.components.SlideShow

A component for creating a slide show from a generic group of HTML elements on the client side.

[JavaDoc]

Component Parameters

Name Type Flags Default Default Prefix Description
clientId String NOT Allow Null prop:componentResources.id literal
controls boolean NOT Allow Null true prop
interval int NOT Allow Null 2 prop Sets the amount of time (in seconds) each slide will be displayed.
loop boolean NOT Allow Null false prop Determines if the slide show will start over after displaying the final slide.
pauseOnHover boolean NOT Allow Null true prop Determines if the slide show will pause when the mouse hovers over it.
transition String NOT Allow Null Ck.SlideShow.Tx.Crossfade literal The slide transition object.

Examples

This is a simple example where the component's body will be used to generate the slides of the show.

MyPage.tml

<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
    <head>
        <title>chenillekit-components</title>
    </head>
    <body>
        <div t:type="ck/slideshow" interval="3">
            <div>1</div>
            <div>2</div>
            <div>3</div>
        </div>
    </body>
</html>
                

Back to index