@Component({
selector: 'my-button',
- styleUrls: ['./button.component.scss'],
+ styleUrls: [ './button.component.scss' ],
templateUrl: './button.component.html'
})
@Input() icon: GlobalIconName = undefined
@Input() title: string = undefined
@Input() loading = false
+ @Input() disabled = false
+ @Input() responsiveLabel = false
getTitle () {
return this.title || this.label
}
+
+ getClasses () {
+ return {
+ [this.className]: true,
+ disabled: this.disabled,
+ 'responsive-label': this.responsiveLabel
+ }
+ }
}