From c8992c55fa5246294e505199ef9704824b3ee4a2 Mon Sep 17 00:00:00 2001 From: Mick Lawitzke Date: Mon, 27 Apr 2020 16:39:23 +0200 Subject: [PATCH 1/3] Update pell.component.ts Made attributes Input() --- src/app/modules/pell/pell.component.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/app/modules/pell/pell.component.ts b/src/app/modules/pell/pell.component.ts index 2795e0e..eef0634 100644 --- a/src/app/modules/pell/pell.component.ts +++ b/src/app/modules/pell/pell.component.ts @@ -8,10 +8,11 @@ import * as pell from './pell'; styleUrls: ['./pell.component.css'], }) export class PellComponent implements OnInit { - actions = Object.keys(pell.actions).map(action => pell.actions[action]); - actionBarClass = 'pell-actionbar'; - actionButtonClass = 'pell-button'; - contentClass = 'pell-content'; + @Input() actions: string[]; + @Input() actionBarClass = 'pell-actionbar'; + @Input() buttonClass = 'pell-button'; + @Input() contentClass = 'pell-content'; + @Input() selectedClass = 'pell-button-selected'; @Output() onChange = new EventEmitter() From 2156d7887e7f3cd4c3f2e40d7e4275a2fe97d3fa Mon Sep 17 00:00:00 2001 From: Mick Lawitzke Date: Mon, 27 Apr 2020 16:41:00 +0200 Subject: [PATCH 2/3] Update pell.component.html Renamed `actionButtonClass` to be on par with Pell --- src/app/modules/pell/pell.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/modules/pell/pell.component.html b/src/app/modules/pell/pell.component.html index 54d099d..0e1bd0b 100644 --- a/src/app/modules/pell/pell.component.html +++ b/src/app/modules/pell/pell.component.html @@ -1,6 +1,6 @@
-
From 9594e9f96dbd0445454c2db08eb68ca1f89bfd1c Mon Sep 17 00:00:00 2001 From: Mick Lawitzke Date: Mon, 27 Apr 2020 16:41:15 +0200 Subject: [PATCH 3/3] Update pell.component.ts --- src/app/modules/pell/pell.component.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/app/modules/pell/pell.component.ts b/src/app/modules/pell/pell.component.ts index eef0634..405ab4c 100644 --- a/src/app/modules/pell/pell.component.ts +++ b/src/app/modules/pell/pell.component.ts @@ -12,7 +12,6 @@ export class PellComponent implements OnInit { @Input() actionBarClass = 'pell-actionbar'; @Input() buttonClass = 'pell-button'; @Input() contentClass = 'pell-content'; - @Input() selectedClass = 'pell-button-selected'; @Output() onChange = new EventEmitter()