blob: b97012d9a0a725b0bfe7a3a0363e371f8881adfa (
plain) (
tree)
|
|
import { Component, Input } from '@angular/core'
import { GlobalIconName } from '@app/shared/shared-icons'
@Component({
selector: 'my-button',
styleUrls: [ './button.component.scss' ],
templateUrl: './button.component.html'
})
export class ButtonComponent {
@Input() label = ''
@Input() className = 'grey-button'
@Input() icon: GlobalIconName = undefined
@Input() title: string = undefined
@Input() loading = false
@Input() disabled = false
@Input() responsiveLabel = false
getClasses () {
return {
[this.className]: true,
disabled: this.disabled,
'responsive-label': this.responsiveLabel
}
}
}
|