Browse Source
Task/widen input types in value component (#8032)
Widen input types
pull/8038/head
Kenrick Tandrian
6 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
2 deletions
-
libs/ui/src/lib/value/value.component.ts
|
|
|
@ -47,7 +47,7 @@ export class GfValueComponent implements AfterViewInit, OnChanges, OnDestroy { |
|
|
|
@Input() size: 'large' | 'medium' | 'small' = 'small'; |
|
|
|
@Input() subLabel?: string = ''; |
|
|
|
@Input() unit?: string | null = ''; |
|
|
|
@Input() value?: number | string | null = ''; |
|
|
|
@Input() value?: Date | number | string | null = ''; |
|
|
|
|
|
|
|
@ViewChild('labelContent', { static: false }) |
|
|
|
labelContent!: ElementRef<HTMLSpanElement>; |
|
|
|
@ -171,7 +171,7 @@ export class GfValueComponent implements AfterViewInit, OnChanges, OnDestroy { |
|
|
|
} |
|
|
|
); |
|
|
|
} else { |
|
|
|
this.formattedValue = this.value; |
|
|
|
this.formattedValue = String(this.value); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|