Browse Source

Task/widen input types in value component (#8032)

Widen input types
pull/8038/head
Kenrick Tandrian 6 days ago
committed by GitHub
parent
commit
5aec4a8a16
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      libs/ui/src/lib/value/value.component.ts

4
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() size: 'large' | 'medium' | 'small' = 'small';
@Input() subLabel?: string = ''; @Input() subLabel?: string = '';
@Input() unit?: string | null = ''; @Input() unit?: string | null = '';
@Input() value?: number | string | null = ''; @Input() value?: Date | number | string | null = '';
@ViewChild('labelContent', { static: false }) @ViewChild('labelContent', { static: false })
labelContent!: ElementRef<HTMLSpanElement>; labelContent!: ElementRef<HTMLSpanElement>;
@ -171,7 +171,7 @@ export class GfValueComponent implements AfterViewInit, OnChanges, OnDestroy {
} }
); );
} else { } else {
this.formattedValue = this.value; this.formattedValue = String(this.value);
} }
} }
} }

Loading…
Cancel
Save