import { Component, Input, EventEmitter, Output } from '@angular/core';
@Component({
selector: 'farris-button',
template: `
`,
styles: []
})
export class FarrisButtonComponent {
@Input() text: string;
@Input() size = 'small';
@Input() type = 'primary';
@Input() disabled: boolean;
@Output() click = new EventEmitter();
constructor() { }
clickEvent(e: any) {
e.stopPropagation();
if(this.disabled){
return;
}
this.click.emit(e);
}
}