Class IgxButtonDirective

Hierarchy

  • IgxButtonDirective

Constructors

constructor

Properties

buttonClick

buttonClick: EventEmitter<any> = new EventEmitter<any>()

Called when the button is clicked

element

element: ElementRef

role

role: string = "button"

Sets/gets the role attribute.

this.button.role = 'navbutton';
let buttonRole =  this.button.role;
memberof

IgxButtonDirective

selected

selected: boolean = false

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>
memberof

IgxButtonDirective

Accessors

background

  • set background(value: string): void
  • Sets the background color of the button.

    <button igxButton="raised" igxButtonBackground="red"></button>
    memberof

    IgxButtonDirective

    Parameters

    • value: string

    Returns void

color

  • set color(value: string): void

disabled

  • set disabled(val: any): void

label

  • set label(value: string): void

nativeElement

  • get nativeElement(): any

type

  • set type(value: string): void