aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/shared/buttons/button.component.ts
blob: 6d34d07f4697ef4db120726c141b088757cc1fa1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                                
                                                                         








                                         
                                                                     
                                           
                                    




                                   
import { Component, Input } from '@angular/core'
import { GlobalIconName } from '@app/shared/images/global-icon.component'

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

export class ButtonComponent {
  @Input() label = ''
  @Input() className: 'orange-button' | 'grey-button' = 'grey-button'
  @Input() icon: GlobalIconName = undefined
  @Input() title: string = undefined

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