Crestron Components Lib - Showcase App

ch5-toggle: click event

ch5-toggle click event

Open the browser console to see the result of a Javascript event handler when the ch5-toggle is clicked . ( See JS tab )

<ch5-toggle
    id="demo"
    label="Alarm"
    labelOn="On"
    labelOff="Off"
    >
</ch5-toggle>

Open the browser console to see result of a jQuery event handler when the ch5-toggle is clicked . ( See the JS tab )

<ch5-toggle
    id="demo2"
    label="Speaker"
    labelOn="On"
    labelOff="Off"
    handleShape="rectangle"
    >
</ch5-toggle>