org.chenillekit.tapestry.core.components.SidePanel

a expand-/pin-able side panel.

[JavaDoc]

Component Parameters

Name Type Flags Default Default Prefix Description
clientId String NOT Allow Null prop:componentResources.id literal The id used to generate a page-unique client-side identifier for the component. If a component renders multiple times, a suffix will be appended to the to id to ensure uniqueness.
sizeElement String NOT Allow Null literal if the panel height should be dynamic, you can place here the id of the html element, on wich deliver size to the panel.

Informal parameters: supported

Examples

This example describe how to use the SidePanel component.

MyPage.tml

                    
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
    <body>
        <h1>Hello Guys</h1>

            <div t:id="slidingPanel" style="width: 350px;">
                <div>
                    Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Quisque consequat purus sed nulla.
                    Proin nunc nunc, vehicula eu, sollicitudin sit amet, condimentum pulvinar, eros. Praesent dui.
                    Pellentesque porta, magna sit amet tristique congue, ligula magna ornare ligula, vitae lobortis
                    dolor lorem vitae purus. Nam convallis turpis non augue. Class aptent taciti sociosqu ad litora
                    torquent per conubia nostra, per inceptos hymenaeos. Maecenas sit amet mi in nisi laoreet
                    consectetuer. Quisque orci sem, tincidunt quis, adipiscing sodales, sagittis egestas, leo.
                    Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.
                    Vestibulum sed turpis in arcu porta consectetuer. Duis arcu erat, porta ut, convallis et, pulvinar
                    a, quam. Aliquam nunc. Pellentesque interdum nibh ac dolor. Vivamus auctor consequat sapien.
                    In odio metus, hendrerit at, ornare in, pellentesque quis, nunc. Aenean ultricies est id lacus.
                    Nam neque. Maecenas cursus rutrum magna. Etiam lacus. Mauris non nunc.
                </div>
            </div>

    </body>
</html>

                

MyPage.java

                    
public class MyPage
{
    @Component(parameters = {"subject=literal:panel subject", "closed=false"})
    private SlidingPanel slidingPanel;
}

                

Back to index