mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
21 lines
519 B
TypeScript
21 lines
519 B
TypeScript
import { Component, Input } from '@angular/core';
|
|
|
|
/**
|
|
* This component renders any content inside this wrapper.
|
|
* The wrapper prints a label before the content (if available)
|
|
*/
|
|
@Component({
|
|
selector: 'ds-metadata-field-wrapper',
|
|
styleUrls: ['./metadata-field-wrapper.component.scss'],
|
|
templateUrl: './metadata-field-wrapper.component.html'
|
|
})
|
|
export class MetadataFieldWrapperComponent {
|
|
|
|
/**
|
|
* The label (title) for the content
|
|
*/
|
|
@Input() label: string;
|
|
|
|
@Input() hideIfNoTextContent = true;
|
|
}
|