56434: Docs for all item-page-metadata-field, related-entities, item-page and metadata-values componens

This commit is contained in:
Kristof De Langhe
2018-10-24 11:05:32 +02:00
parent 4d24802871
commit e4eee7ce27
4 changed files with 28 additions and 0 deletions

View File

@@ -11,6 +11,9 @@ import { Component, Input } from '@angular/core';
})
export class MetadataFieldWrapperComponent {
/**
* The label (title) for the content
*/
@Input() label: string;
}

View File

@@ -16,11 +16,24 @@ import { MetadataValuesComponent } from '../metadata-values/metadata-values.comp
})
export class MetadataUriValuesComponent extends MetadataValuesComponent {
/**
* Optional text to replace the links with
* If undefined, the metadata value (uri) is displayed
*/
@Input() linktext: any;
/**
* The metadata values to display
*/
@Input() values: any;
/**
* The seperator used to split the metadata values (can contain HTML)
*/
@Input() separator: string;
/**
* The label for this iteration of metadata values
*/
@Input() label: string;
}

View File

@@ -12,10 +12,19 @@ import { Metadatum } from '../../../core/shared/metadatum.model';
})
export class MetadataValuesComponent {
/**
* The metadata values to display
*/
@Input() values: Metadatum[];
/**
* The seperator used to split the metadata values (can contain HTML)
*/
@Input() separator: string;
/**
* The label for this iteration of metadata values
*/
@Input() label: string;
}

View File

@@ -13,6 +13,9 @@ import { Item } from '../../../../core/shared/item.model';
})
export class ItemPageFieldComponent {
/**
* The item to display metadata for
*/
@Input() item: Item;
/**