Crestron Components Lib - Showcase App

ch5-triggerview: sendSignalShowChildIndex

ch5-triggerview sendSignalShowChildIndex

Send index of currently visible item

Open the browser console to see that when changing active view a signal named send_index_view is sent with active view index.

First View

Second View

Third View


<p>Open the browser console to see that when changing active view a signal named send_index_view is sent with active view index.</p>

<ch5-triggerview 
    id="demo" 
    sendSignalShowChildIndex="send_index_view"
    > 
    <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>