aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/buttons/button.component.ts
blob: 1a1162f0901aa87cfb3cb75ced66464d235b3aa6 (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: string = undefined
  @Input() icon: string = undefined
  @Input() title: string = undefined

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