Sets/gets the role attribute.
this.button.role = 'navbutton';
let buttonRole = this.button.role;
Gets or sets whether the button is selected. Mainly used in the IgxButtonGroup component and it will have no effect if set separately.
<button igxButton="flat" [selected]="button.selected"></button>
Sets the background color of the button.
<button igxButton="raised" igxButtonBackground="red"></button>
Sets the button text color.
<button igxButton="gradient" igxButtonColor="blue"></button>
Enables/disables the button.
<button igxButton= "fab" [disabled]="true"></button>
Returns the theme of the component.
The default theme is comfortable.
Available options are comfortable, cosy, compact.
let componentTheme = this.component.displayDensity;
Sets the theme of the component.
Sets the aria-label attribute.
<button igxButton= "flat" igxLabel="Label"></button>
Returns the underlying DOM element
Sets the type of the button.
<button igxButton= "icon"></button>
Called when the button is clicked