Crestron Components Lib - Showcase App

ch5-button: sendEventOnClick, sendEventOnTouch

Send signal on click

Open the browser console to see that when the button is clicked a signal named btn_clicked is sent.

<ch5-button type="success" shape="rectangle" label="SendOnClick" sendEventOnClick="btn_clicked"></ch5-button>

Send signal on touch

Open the browser console to see that a signal named btn_touched is sent when a touch event is triggered. The signal is reinforced to true every 200ms and is set to false when touchEnd or touchMove is detected.

The browser console should be switched to mobile mode in order to be able to simulate touch events.

<ch5-button type="success" shape="rectangle" label="SendOnTouch" sendEventOnTouch="btn_touched"></ch5-button>