The IgxIconButtonDirective provides a way to use an icon as a fully functional button.
<button type="button" igxIconButton="outlined"> <igx-icon>home</igx-icon></button> Copy
<button type="button" igxIconButton="outlined"> <igx-icon>home</igx-icon></button>
Emitted when the button is clicked.
Enables/disables the button.
<button igxButton="fab" disabled></button> Copy
<button igxButton="fab" disabled></button>
Sets/gets the role attribute.
role
this.button.role = 'navbutton';let buttonRole = this.button.role; Copy
this.button.role = 'navbutton';let buttonRole = this.button.role;
Returns the underlying DOM element.
Sets the type of the icon button.
<button type="button" igxIconButton="flat"></button> Copy
<button type="button" igxIconButton="flat"></button>
The IgxIconButtonDirective provides a way to use an icon as a fully functional button.
Example