Crestron Components Lib - Showcase App

ch5-triggerview: previousViewChild | nextViewChild

ch5-triggerview previousViewChild | nextViewChild

Shows the previous child or next child.

When the buttons "prev" or "next" are clicked, related methods are called (See the JS tab.)

First View

Second View

Third View


<ch5-triggerview id="demo"> 
    <ch5-triggerview-child>
        <div class="viewcontent">
            <h1>First View</h1>
        </div>
    </ch5-triggerview-child> 
    <ch5-triggerview-child>
        <div class="viewcontent">
            <h1>Second View</h1>
        </div>
    </ch5-triggerview-child>
    <ch5-triggerview-child>
        <div class="viewcontent">
            <h1>Third View</h1>
        </div>
    </ch5-triggerview-child>  
</ch5-triggerview>

<br>

<ch5-button id="prev" label="prev"></ch5-button>
<ch5-button id="next" label="next"></ch5-button>