Crestron Components Lib - Showcase App

ch5-advanced-button: label, receiveStateLabel, receiveStateScriptLabelHtml

Label text received from signal

The label is first set through the label attribute.

When the signal with the name specified in the receiveStateLabel attribute changes value, the text of the button label also changes.

When the signal with the name specified in the receiveStateScriptLabelHtml attribute changes value, the html code of the button label also changes.

Click the buttons to change the value of the btn_receive_label and btn_receive_html_script_label signals

<div>
		<p>
				Clicking this button will change the value of the signals <b>btn_receive_label</b> and <b>btn_receive_html_script_label</b> ( See Emulator section above )
				<br />
				<ch5-advanced-button type="info" stretch="width" sendEventOnClick="trig1" label="Btn1 - emulator"></ch5-advanced-button>
		</p>
		<p>
				Clicking this button will change the value of the signals <b>btn_receive_label</b> and <b>btn_receive_html_script_label</b> ( See Emulator section above )
				<br />
				<ch5-advanced-button type="info" stretch="width" sendEventOnClick="trig2" label="Btn2 - emulator"></ch5-advanced-button>
		</p>
</div>

<div class="btn-example-block">
		Button with receiveStateLabel attribute set to <b>btn_receive_label</b>
		<br />
		<ch5-advanced-button type="success" stretch="width" shape="rectangle" label="ReceiveLabelFromSignal" receiveStateLabel="btn_receive_label"></ch5-advanced-button>
</div>

<div class="btn-example-block">
		Button with receiveStateLabel attribute set to <b>btn_receive_html_script_label</b>
		<br />
		<ch5-advanced-button type="success" stretch="width" shape="rectangle" label="ReceiveHtmlScriptLabelFromSignal" receiveStateScriptLabelHtml="btn_receive_html_script_label"></ch5-advanced-button>
</div>

Clicking this button will change the value of the signals btn_receive_label and btn_receive_html_script_label ( See Emulator section above )

Clicking this button will change the value of the signals btn_receive_label and btn_receive_html_script_label ( See Emulator section above )

Button with receiveStateLabel attribute set to btn_receive_label
Button with receiveStateLabel attribute set to btn_receive_html_script_label