aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/buttons/button.component.ts
blob: 967cb140973c818a0bb278ab6fd3ddb97c83011c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { Component, Input } from '@angular/core'

@Component({
  selector: 'my-button',
  styleUrls: ['./button.component.scss'],
  templateUrl: './button.component.html'
})

export class ButtonComponent {
  @Input() label = ''
  @Input() className = undefined
  @Input() icon = undefined
  @Input() title = undefined

  getTitle () {
    return this.title || this.label
  }
}