Crestron Components Lib - Showcase App

ch5-triggerview: setActiveView

ch5-triggerview setActiveView

Show the child based upon 1 based index

Clicking on the "setActiveView" button will change the active view to the second child.
( See JS tab )

First View

Second View

Third View


<p>Clicking on the "setActiveView" button will change the active view to the second child. <br>( See JS tab )</p>

<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="button" label="setActiveView"></ch5-button>