Crestron Components Lib - Showcase App

ch5-button: type

Type attribute

Possible values are danger, text, warning, info, success, default, primary, secondary
<div>
		<h5>normal button faces below:</h5>
		<ch5-button type="danger" label="Danger"></ch5-button>
		<ch5-button type="text" label="Text"></ch5-button>
		<ch5-button type="warning" label="Warning"></ch5-button>
		<ch5-button type="info" label="Info"></ch5-button>
		<ch5-button type="success" label="Success"></ch5-button>
		<ch5-button type="default" label="Default"></ch5-button>
		<ch5-button type="primary" label="Primary"></ch5-button>
		<ch5-button type="secondary" label="Secondary"></ch5-button>
</div>
<br/>
<div>
		<h5>selected button faces below:</h5>
		<ch5-button selected type="danger" label="Danger"></ch5-button>
		<ch5-button selected type="text" label="Text"></ch5-button>
		<ch5-button selected type="warning" label="Warning"></ch5-button>
		<ch5-button selected type="info" label="Info"></ch5-button>
		<ch5-button selected type="success" label="Success"></ch5-button>
		<ch5-button selected type="default" label="Default"></ch5-button>
		<ch5-button selected type="primary" label="Primary"></ch5-button>
		<ch5-button selected type="secondary" label="Secondary"></ch5-button>
</div>
normal button faces below:

selected button faces below:

Use receiveStateType attribute in order to change the button type through signal

<div>
		<h5>The type attribute is changed for the button below:</h5>
		<ch5-button type="danger" label="Danger" receivestatetype="current_type"></ch5-button>
</div>
<br /><br />
<div>
		<h5>Change the above button type attribute by clicking on the below buttons:</h5>
		<ch5-button type="primary" sendeventonclick="trigger_type_change_primary" label="Primary"></ch5-button>
		<ch5-button type="danger" sendeventonclick="trigger_type_change_danger" label="Danger"></ch5-button>
		<ch5-button type="success" sendeventonclick="trigger_type_change_success" label="Success"></ch5-button>
		<ch5-button type="warning" sendeventonclick="trigger_type_change_warning" label="Warning"></ch5-button>
</div>
<br/>
The type attribute is changed for the button below:


Change the above button type attribute by clicking on the below buttons: