Emitted when the button is clicked.
Enables/disables the button.
<button igxButton="fab" disabled></button>
Sets/gets the role
attribute.
this.button.role = 'navbutton';
let buttonRole = this.button.role;
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.
Returns the underlying DOM element.
Sets the type of the icon button.
<button type="button" igxIconButton="flat"></button>
Sets the --component-size
CSS variable based on the value of Display Density
The IgxIconButtonDirective provides a way to use an icon as a fully functional button.
Example