The icon button provides a way to use an icon as a fully functional button.

Example

<button type="button" igxIconButton="outlined">
     <igx-icon>home</igx-icon>
</button>

IgxIconButtonDirective

new IgxIconButtonDirective(): IgxIconButtonDirective

Defined in projects/igniteui-angular/directives/src/directives/button/button-base.ts:60

Returns IgxIconButtonDirective

Inherited from: IgxButtonBaseDirective

Emitted when the button is clicked.

buttonClick: EventEmitter<MouseEvent>

Defined in projects/igniteui-angular/directives/src/directives/button/button-base.ts:53

Inherited from: IgxButtonBaseDirective

get disabled(): boolean

Defined in projects/igniteui-angular/directives/src/directives/button/button-base.ts:47

Returns boolean

Gets or sets whether the button is disabled.

set disabled(value: boolean): void

Defined in projects/igniteui-angular/directives/src/directives/button/button-base.ts:43

Example

<button type="button" igxButton="flat" [disabled]="isDisabled"></button>

Parameters

  • value: boolean

Returns void

Inherited from: IgxButtonBaseDirective

Returns the underlying DOM element.

get nativeElement(): HTMLElement

Defined in projects/igniteui-angular/directives/src/directives/button/button-base.ts:56

Returns HTMLElement

Sets the type of the icon button.

set type(type: IgxIconButtonType): void

Defined in projects/igniteui-angular/directives/src/directives/button/icon-button.directive.ts:42

Example

<button type="button" igxIconButton="flat"></button>

Parameters

Returns void